mjpegdec: dont set got_picture to 0 per frame.

Fixes Ticket1915

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/8/head
Michael Niedermayer 12 years ago
parent 541efe4120
commit 2cfa6fd025
  1. 1
      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) {

Loading…
Cancel
Save