[FFmpeg-cvslog] bintext: reset x and y pos after each frame decode.

Clément Bœsch git at videolan.org
Fri Oct 7 22:42:08 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Oct  7 22:06:59 2011 +0200| [3775af0fec649f76f91077b987e0925b415a8716] | committer: Michael Niedermayer

bintext: reset x and y pos after each frame decode.

This makes successive frames decode possible.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3775af0fec649f76f91077b987e0925b415a8716
---

 libavcodec/bintext.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index d183ba0..947be39 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;



More information about the ffmpeg-cvslog mailing list