[FFmpeg-cvslog] mjpegdec: dont set got_picture to 0 per frame.

Michael Niedermayer git at videolan.org
Tue Nov 27 20:20:53 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 27 20:15:32 2012 +0100| [2cfa6fd025f730d91f5904951dd4dbee5899c32a] | committer: Michael Niedermayer

mjpegdec: dont set got_picture to 0 per frame.

Fixes Ticket1915

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

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

 libavcodec/mjpegdec.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 097bb1a..8b4d5f7 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1603,7 +1603,6 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     int ret = 0;
     AVFrame *picture = data;
 
-    s->got_picture = 0; // picture from previous image can not be reused
     buf_ptr = buf;
     buf_end = buf + buf_size;
     while (buf_ptr < buf_end) {



More information about the ffmpeg-cvslog mailing list