Browse Source

mjpegdec: dont set got_picture to 0 per frame.

Fixes Ticket1915

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
2cfa6fd025
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavcodec/mjpegdec.c

+ 0
- 1
libavcodec/mjpegdec.c View File

@@ -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