mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-02 22:43:22 +02:00
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>
This commit is contained in:
parent
93f4277714
commit
dabfa80ce2
@ -1972,6 +1972,10 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
|
|||||||
MJpegDecodeContext *s = avctx->priv_data;
|
MJpegDecodeContext *s = avctx->priv_data;
|
||||||
int i, j;
|
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)
|
if (s->picture_ptr)
|
||||||
av_frame_unref(s->picture_ptr);
|
av_frame_unref(s->picture_ptr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user