From 3775af0fec649f76f91077b987e0925b415a8716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 7 Oct 2011 22:06:59 +0200 Subject: [PATCH] bintext: reset x and y pos after each frame decode. This makes successive frames decode possible. Signed-off-by: Michael Niedermayer --- libavcodec/bintext.c | 1 + 1 file changed, 1 insertion(+) 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;