comparison cdgraphics.c @ 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 e6cd0f36159b
children 8a4984c5cacc
comparison
equal deleted inserted replaced
10709:09227c145beb 10710:923f828d1e2c
69 } CDGraphicsContext; 69 } CDGraphicsContext;
70 70
71 static void cdg_init_frame(AVFrame *frame) 71 static void cdg_init_frame(AVFrame *frame)
72 { 72 {
73 avcodec_get_frame_defaults(frame); 73 avcodec_get_frame_defaults(frame);
74 frame->reference = 1; 74 frame->reference = 3;
75 frame->buffer_hints = FF_BUFFER_HINTS_VALID | 75 frame->buffer_hints = FF_BUFFER_HINTS_VALID |
76 FF_BUFFER_HINTS_READABLE |
76 FF_BUFFER_HINTS_PRESERVE | 77 FF_BUFFER_HINTS_PRESERVE |
77 FF_BUFFER_HINTS_REUSABLE; 78 FF_BUFFER_HINTS_REUSABLE;
78 } 79 }
79 80
80 static av_cold int cdg_decode_init(AVCodecContext *avctx) 81 static av_cold int cdg_decode_init(AVCodecContext *avctx)