# HG changeset patch # User bcoudurier # Date 1263859090 0 # Node ID 9baa7b82a8404588ad15bae45a862a1b80e131ea # Parent 5d938dd16b3433b5315786648d8561b9d1954dba reindent diff -r 5d938dd16b34 -r 9baa7b82a840 mov.c --- a/mov.c Mon Jan 18 23:56:04 2010 +0000 +++ b/mov.c Mon Jan 18 23:58:10 2010 +0000 @@ -1654,12 +1654,12 @@ if (st->codec->codec_type == CODEC_TYPE_VIDEO) { if (st->codec->width != sc->width || st->codec->height != sc->height) { - AVRational r = av_d2q(((double)st->codec->height * sc->width) / - ((double)st->codec->width * sc->height), INT_MAX); - if (st->sample_aspect_ratio.num) - st->sample_aspect_ratio = av_mul_q(st->sample_aspect_ratio, r); - else - st->sample_aspect_ratio = r; + AVRational r = av_d2q(((double)st->codec->height * sc->width) / + ((double)st->codec->width * sc->height), INT_MAX); + if (st->sample_aspect_ratio.num) + st->sample_aspect_ratio = av_mul_q(st->sample_aspect_ratio, r); + else + st->sample_aspect_ratio = r; } av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,