Fix infinite loop at EOF.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 14 Jul 2008 16:18:29 +0000 (16:18 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 14 Jul 2008 16:18:29 +0000 (16:18 +0000)
Originally committed as revision 14231 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/svq3.c

index 6333d30..c007f49 100644 (file)
@@ -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;