[FFmpeg-cvslog] jpegdec: clear EOBRUN on restarts

Michael Niedermayer git at videolan.org
Tue Jul 9 23:58:19 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul  9 23:46:29 2013 +0200| [233177a4ec68bddf6df865936bc3c630d8d9ec58] | committer: Michael Niedermayer

jpegdec: clear EOBRUN on restarts

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

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

 libavcodec/mjpegdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 565580e..dac8386 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1180,7 +1180,8 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
                     s->dsp.idct_put(ptr, linesize, *block);
                     ptr += 8 >> s->avctx->lowres;
             }
-            handle_rstn(s, 0);
+            if (handle_rstn(s, 0))
+                EOBRUN = 0;
         }
     }
     return 0;



More information about the ffmpeg-cvslog mailing list