Commit bb1a63a3 authored by michael's avatar michael

fix playback of odd_height.mov

this isnt the most beautifull solution but at least it works independant of the
random height in mov and it doesnt add any secholes


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8736 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8aa56b32
......@@ -1125,6 +1125,10 @@ static int mjpeg_decode_sof(MJpegDecodeContext *s)
height = get_bits(&s->gb, 16);
width = get_bits(&s->gb, 16);
//HACK for odd_height.mov
if(s->interlaced && s->width == width && s->height == height + 1)
height= s->height;
av_log(s->avctx, AV_LOG_DEBUG, "sof0: picture: %dx%d\n", width, height);
if(avcodec_check_dimensions(s->avctx, width, height))
return -1;
......
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