aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bintext.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-16 05:31:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-16 05:53:32 +0200
commit3ac4f444e276a4e418a54240bab8ddfb1ab7a5d8 (patch)
treed518ff52380c18710196ccf81ed7325c451f6680 /libavcodec/bintext.c
parentb9dbaa409f51545a840929665fa0303b46e7e8a5 (diff)
downloadffmpeg-3ac4f444e276a4e418a54240bab8ddfb1ab7a5d8.tar.gz
bintext: set buffer hints
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bintext.c')
-rw-r--r--libavcodec/bintext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index e63d3d9dda..915aea0f32 100644
--- a/libavcodec/bintext.c
+++ b/libavcodec/bintext.c
@@ -131,6 +131,9 @@ static int decode_frame(AVCodecContext *avctx,
int buf_size = avpkt->size;
const uint8_t *buf_end = buf+buf_size;
+ s->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
+ FF_BUFFER_HINTS_PRESERVE |
+ FF_BUFFER_HINTS_REUSABLE;
if (avctx->reget_buffer(avctx, &s->frame)) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;