Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2011/09/16 12:31:46... | ... |
@@ -131,6 +131,9 @@ static int decode_frame(AVCodecContext *avctx, |
131 | 131 |
int buf_size = avpkt->size; |
132 | 132 |
const uint8_t *buf_end = buf+buf_size; |
133 | 133 |
|
134 |
+ s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | |
|
135 |
+ FF_BUFFER_HINTS_PRESERVE | |
|
136 |
+ FF_BUFFER_HINTS_REUSABLE; |
|
134 | 137 |
if (avctx->reget_buffer(avctx, &s->frame)) { |
135 | 138 |
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |
136 | 139 |
return -1; |