projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d1e924
)
fixing aspect (hopefully, i couldnt reproduce the bug)
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 6 Dec 2002 15:01:48 +0000
(15:01 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 6 Dec 2002 15:01:48 +0000
(15:01 +0000)
Originally committed as revision 1317 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpeg.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpeg.c
b/libavcodec/mjpeg.c
index
eed155c
..
2e6dd8f
100644
(file)
--- a/
libavcodec/mjpeg.c
+++ b/
libavcodec/mjpeg.c
@@
-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
{