Mercurial > libavcodec.hg
comparison cyuv.c @ 2000:86220e37a31e libavcodec
Add buffer hints, enable DR1
author | rtognimp |
---|---|
date | Sun, 02 May 2004 20:01:39 +0000 |
parents | 932d306bf1dc |
children | 141a9539e270 |
comparison
equal
deleted
inserted
replaced
1999:18d5eb75ae71 | 2000:86220e37a31e |
---|---|
98 stream_ptr = 48; | 98 stream_ptr = 48; |
99 | 99 |
100 if(s->frame.data[0]) | 100 if(s->frame.data[0]) |
101 avctx->release_buffer(avctx, &s->frame); | 101 avctx->release_buffer(avctx, &s->frame); |
102 | 102 |
103 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID; | |
103 s->frame.reference = 0; | 104 s->frame.reference = 0; |
104 if(avctx->get_buffer(avctx, &s->frame) < 0) { | 105 if(avctx->get_buffer(avctx, &s->frame) < 0) { |
105 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); | 106 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |
106 return -1; | 107 return -1; |
107 } | 108 } |
178 sizeof(CyuvDecodeContext), | 179 sizeof(CyuvDecodeContext), |
179 cyuv_decode_init, | 180 cyuv_decode_init, |
180 NULL, | 181 NULL, |
181 cyuv_decode_end, | 182 cyuv_decode_end, |
182 cyuv_decode_frame, | 183 cyuv_decode_frame, |
183 0, | 184 CODEC_CAP_DR1, |
184 NULL | 185 NULL |
185 }; | 186 }; |
186 | 187 |