[FFmpeg-cvslog] r20923 - trunk/libavcodec/cdgraphics.c

reimar subversion
Sat Dec 26 12:07:47 CET 2009


Author: reimar
Date: Sat Dec 26 12:07:47 2009
New Revision: 20923

Log:
Fix cdg reference and buffer_hints value:
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.

Modified:
   trunk/libavcodec/cdgraphics.c

Modified: trunk/libavcodec/cdgraphics.c
==============================================================================
--- trunk/libavcodec/cdgraphics.c	Sat Dec 26 11:59:56 2009	(r20922)
+++ trunk/libavcodec/cdgraphics.c	Sat Dec 26 12:07:47 2009	(r20923)
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list