Commit dabfa80c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: print a message when there was just a single field and no frame

Fixes ticket1915
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 93f42777
......@@ -1972,6 +1972,10 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
MJpegDecodeContext *s = avctx->priv_data;
int i, j;
if (s->interlaced && s->bottom_field == !s->interlace_polarity && s->got_picture && !avctx->frame_number) {
av_log(avctx, AV_LOG_INFO, "Single field\n");
}
if (s->picture_ptr)
av_frame_unref(s->picture_ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment