You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/mjpegdec: request a AMV sample with non mod 16 height
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -264,6 +264,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
|||||||
height = get_bits(&s->gb, 16);
|
height = get_bits(&s->gb, 16);
|
||||||
width = get_bits(&s->gb, 16);
|
width = get_bits(&s->gb, 16);
|
||||||
|
|
||||||
|
if (s->avctx->codec_id == AV_CODEC_ID_AMV && (height&15))
|
||||||
|
avpriv_request_sample(s->avctx, "non mod 16 height AMV\n");
|
||||||
|
|
||||||
// HACK for odd_height.mov
|
// HACK for odd_height.mov
|
||||||
if (s->interlaced && s->width == width && s->height == height + 1)
|
if (s->interlaced && s->width == width && s->height == height + 1)
|
||||||
height= s->height;
|
height= s->height;
|
||||||
|
Reference in New Issue
Block a user