OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9dbaa4
)
bintext: set buffer hints
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 16 Sep 2011 03:31:46 +0000
(
05:31
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 16 Sep 2011 03:53:32 +0000
(
05:53
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bintext.c
patch
|
blob
|
history
diff --git
a/libavcodec/bintext.c
b/libavcodec/bintext.c
index
e63d3d9
..
915aea0
100644
(file)
--- 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;