Commit b03ee312 authored by michaelni's avatar michaelni

fixing aspect (hopefully, i couldnt reproduce the bug)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1317 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6500d80f
......@@ -1184,7 +1184,10 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
int y_density = get_bits(&s->gb, 16);
//MN: needs to be checked
s->avctx->aspect_ratio= s->width*y_density/((float)s->height*x_density);
if(x_density)
s->avctx->aspect_ratio= s->width*y_density/((float)s->height*x_density);
else
s->avctx->aspect_ratio= 0.0;
}
else
{
......
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