提交 706fc4de 编写于 作者: M Michael Niedermayer

fixing aspect (hopefully, i couldnt reproduce the bug)

Originally committed as revision 1317 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 0d1e9246
...@@ -1184,7 +1184,10 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) ...@@ -1184,7 +1184,10 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
int y_density = get_bits(&s->gb, 16); int y_density = get_bits(&s->gb, 16);
//MN: needs to be checked //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 else
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册