Mercurial > libavformat.hg
changeset 5563:9baa7b82a840 libavformat
reindent
author | bcoudurier |
---|---|
date | Mon, 18 Jan 2010 23:58:10 +0000 |
parents | 5d938dd16b34 |
children | 2db4e4b04157 |
files | mov.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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,