From 54347c2f51a9aae0f45a55069513ffb340014e10 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 14 Jul 2008 16:18:29 +0000 Subject: [PATCH] Fix infinite loop at EOF. Originally committed as revision 14231 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/svq3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 6333d30..c007f49 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -835,6 +835,7 @@ static int svq3_decode_frame (AVCodecContext *avctx, if (buf_size == 0) { if (s->next_picture_ptr && !s->low_delay) { *(AVFrame *) data = *(AVFrame *) &s->next_picture; + s->next_picture_ptr= NULL; *data_size = sizeof(AVFrame); } return 0; -- 2.7.4