diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-12 20:35:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-12 20:35:09 +0200 |
commit | 2de88776892093b10522152f1f72b7dfc0320502 (patch) | |
tree | 3c9fa953b147b907bbbc13af47c675da996924e3 | |
parent | ddc9bc77218dca097783c6563270290e2e936e82 (diff) | |
download | ffmpeg-2de88776892093b10522152f1f72b7dfc0320502.tar.gz |
asfdec: invert SAR
It appears this was wrong
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/asfdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 2fdde15695..b1b8eeb303 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -776,12 +776,12 @@ static int asf_read_header(AVFormatContext *s) if (!st->codec->bit_rate) st->codec->bit_rate = asf->stream_bitrates[i]; if (asf->dar[i].num > 0 && asf->dar[i].den > 0){ - av_reduce(&st->sample_aspect_ratio.num, - &st->sample_aspect_ratio.den, + av_reduce(&st->sample_aspect_ratio.den, + &st->sample_aspect_ratio.num, asf->dar[i].num, asf->dar[i].den, INT_MAX); } else if ((asf->dar[0].num > 0) && (asf->dar[0].den > 0) && (st->codec->codec_type==AVMEDIA_TYPE_VIDEO)) // Use ASF container value if the stream doesn't AR set. - av_reduce(&st->sample_aspect_ratio.num, - &st->sample_aspect_ratio.den, + av_reduce(&st->sample_aspect_ratio.den, + &st->sample_aspect_ratio.num, asf->dar[0].num, asf->dar[0].den, INT_MAX); //av_log(s, AV_LOG_INFO, "i=%d, st->codec->codec_type:%d, dar %d:%d sar=%d:%d\n", i, st->codec->codec_type, dar[i].num, dar[i].den, st->sample_aspect_ratio.num, st->sample_aspect_ratio.den); |