projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f877954
)
Fix cdg reference and buffer_hints value:
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 26 Dec 2009 11:07:47 +0000
(11:07 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 26 Dec 2009 11:07:47 +0000
(11:07 +0000)
reference must be 3 because both "fields" are used as reference,
and buffer_hints must include readable since we might memcpy from the old frame.
Originally committed as revision 20923 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cdgraphics.c
patch
|
blob
|
history
diff --git
a/libavcodec/cdgraphics.c
b/libavcodec/cdgraphics.c
index
fa835b9
..
8f04e01
100644
(file)
--- a/
libavcodec/cdgraphics.c
+++ b/
libavcodec/cdgraphics.c
@@
-71,8
+71,9
@@
typedef struct CDGraphicsContext {
static void cdg_init_frame(AVFrame *frame)
{
avcodec_get_frame_defaults(frame);
- frame->reference =
1
;
+ frame->reference =
3
;
frame->buffer_hints = FF_BUFFER_HINTS_VALID |
+ FF_BUFFER_HINTS_READABLE |
FF_BUFFER_HINTS_PRESERVE |
FF_BUFFER_HINTS_REUSABLE;
}