summaryrefslogtreecommitdiff
path: root/libavcodec/bintext.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-10-07 22:06:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-07 22:28:07 +0200
commit3775af0fec649f76f91077b987e0925b415a8716 (patch)
treec12222b6da52a40833386500b511124a99803252 /libavcodec/bintext.c
parent4052bf69ac13934e0ab7e2e48688df8e463be92a (diff)
bintext: reset x and y pos after each frame decode.
This makes successive frames decode possible. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bintext.c')
-rw-r--r--libavcodec/bintext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index d183ba0512..947be396b8 100644
--- a/libavcodec/bintext.c
+++ b/libavcodec/bintext.c
@@ -131,6 +131,7 @@ static int decode_frame(AVCodecContext *avctx,
int buf_size = avpkt->size;
const uint8_t *buf_end = buf+buf_size;
+ s->x = s->y = 0;
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
FF_BUFFER_HINTS_PRESERVE |
FF_BUFFER_HINTS_REUSABLE;