Commit 2544326d authored by rtognimp's avatar rtognimp

Add buffer hints, enable DR1


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3104 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e4d87bd2
...@@ -100,6 +100,7 @@ static int cyuv_decode_frame(AVCodecContext *avctx, ...@@ -100,6 +100,7 @@ static int cyuv_decode_frame(AVCodecContext *avctx,
if(s->frame.data[0]) if(s->frame.data[0])
avctx->release_buffer(avctx, &s->frame); avctx->release_buffer(avctx, &s->frame);
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
s->frame.reference = 0; s->frame.reference = 0;
if(avctx->get_buffer(avctx, &s->frame) < 0) { if(avctx->get_buffer(avctx, &s->frame) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
...@@ -180,7 +181,7 @@ AVCodec cyuv_decoder = { ...@@ -180,7 +181,7 @@ AVCodec cyuv_decoder = {
NULL, NULL,
cyuv_decode_end, cyuv_decode_end,
cyuv_decode_frame, cyuv_decode_frame,
0, CODEC_CAP_DR1,
NULL NULL
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment