diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-10-07 22:06:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-07 22:28:07 +0200 |
commit | 3775af0fec649f76f91077b987e0925b415a8716 (patch) | |
tree | c12222b6da52a40833386500b511124a99803252 /libavcodec | |
parent | 4052bf69ac13934e0ab7e2e48688df8e463be92a (diff) | |
download | ffmpeg-3775af0fec649f76f91077b987e0925b415a8716.tar.gz |
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')
-rw-r--r-- | libavcodec/bintext.c | 1 |
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; |