# HG changeset patch # User reimar # Date 1261825667 0 # Node ID 923f828d1e2c79035af51a41fb99cee4192dc846 # Parent 09227c145beb0cb368123bcaa126658e5bae600a 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. diff -r 09227c145beb -r 923f828d1e2c cdgraphics.c --- 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; }