aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Togni <r_togni@tiscali.it>2004-05-02 20:01:39 +0000
committerRoberto Togni <r_togni@tiscali.it>2004-05-02 20:01:39 +0000
commitce5b6f63c52ba399d80436937c64dea8c241b753 (patch)
treea8b5f39f795f41b27bbfbb1901633f1c8a04afef
parentc172913a24c48bf6e8da50234a540e14a2ad50fc (diff)
downloadffmpeg-ce5b6f63c52ba399d80436937c64dea8c241b753.tar.gz
Add buffer hints, enable DR1
Originally committed as revision 3104 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/cyuv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c
index 70b55066ad..aee2bc5ecc 100644
--- a/libavcodec/cyuv.c
+++ b/libavcodec/cyuv.c
@@ -100,6 +100,7 @@ static int cyuv_decode_frame(AVCodecContext *avctx,
if(s->frame.data[0])
avctx->release_buffer(avctx, &s->frame);
+ s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
s->frame.reference = 0;
if(avctx->get_buffer(avctx, &s->frame) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
@@ -180,7 +181,7 @@ AVCodec cyuv_decoder = {
NULL,
cyuv_decode_end,
cyuv_decode_frame,
- 0,
+ CODEC_CAP_DR1,
NULL
};