changeset 10710:923f828d1e2c libavcodec

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.
author reimar
date Sat, 26 Dec 2009 11:07:47 +0000
parents 09227c145beb
children d2c20d24abbd
files cdgraphics.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cdgraphics.c	Fri Dec 25 17:13:05 2009 +0000
+++ b/cdgraphics.c	Sat Dec 26 11:07:47 2009 +0000
@@ -71,8 +71,9 @@
 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;
 }