Browse Source

avcodec/mjpegdec: Dont skip picture allocation if theres no picture allocated

Fixes Ticket 3245
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
ad8d063f23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mjpegdec.c

+ 1
- 1
libavcodec/mjpegdec.c View File

@@ -336,7 +336,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
s->first_picture = 0;
}

if (s->interlaced && (s->bottom_field == !s->interlace_polarity)) {
if (s->got_picture && s->interlaced && (s->bottom_field == !s->interlace_polarity)) {
if (s->progressive) {
avpriv_request_sample(s->avctx, "progressively coded interlaced picture");
return AVERROR_INVALIDDATA;


Loading…
Cancel
Save