From: Michael Niedermayer Date: Mon, 14 Jul 2008 16:18:29 +0000 (+0000) Subject: Fix infinite loop at EOF. X-Git-Tag: v0.5~3677 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/54347c2f51a9aae0f45a55069513ffb340014e10 Fix infinite loop at EOF. Originally committed as revision 14231 to svn://svn.ffmpeg.org/ffmpeg/trunk --- 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;