diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 18:51:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 19:16:38 +0200 |
commit | dabfa80ce27f1e93e3d265db9d3f38a819e144af (patch) | |
tree | 0ba2f4dbe865d6b7bcd7dff98a18a0ba431c5dc4 | |
parent | 93f4277714ff7b8bb46306808bc42fff28d47dc8 (diff) | |
download | ffmpeg-streaming-dabfa80ce27f1e93e3d265db9d3f38a819e144af.zip ffmpeg-streaming-dabfa80ce27f1e93e3d265db9d3f38a819e144af.tar.gz |
avcodec/mjpegdec: print a message when there was just a single field and no frame
Fixes ticket1915
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mjpegdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 76a4a31..6e16152 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -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); |