# HG changeset patch # User michaelni # Date 1039186908 0 # Node ID 259f3efebef5e6a0ef5892b14fba45a00d724775 # Parent 75ee49a4a516d1b35014310c4782bcc8da390a24 fixing aspect (hopefully, i couldnt reproduce the bug) diff -r 75ee49a4a516 -r 259f3efebef5 mjpeg.c --- a/mjpeg.c Fri Dec 06 13:30:13 2002 +0000 +++ b/mjpeg.c Fri Dec 06 15:01:48 2002 +0000 @@ -1184,7 +1184,10 @@ 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 {