mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
Merge commit 'af11fa5409cc72fc45ca7f3527400beca10967b9'
* commit 'af11fa5409cc72fc45ca7f3527400beca10967b9': mjpegb: Detect changing number of planes in interlaced video Conflicts: libavcodec/mjpegdec.c See: ecc31630f9a16ead4272a078c281afcb4db87f21 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
49f5519345
@ -259,7 +259,8 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
|||||||
return -1;
|
return -1;
|
||||||
if (s->interlaced && (s->bottom_field == !s->interlace_polarity)) {
|
if (s->interlaced && (s->bottom_field == !s->interlace_polarity)) {
|
||||||
if (nb_components != s->nb_components) {
|
if (nb_components != s->nb_components) {
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "nb_components changing in interlaced picture\n");
|
av_log(s->avctx, AV_LOG_ERROR,
|
||||||
|
"nb_components changing in interlaced picture\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user