aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-03 16:32:17 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-09 01:14:21 +0200
commita39b603bf6d8c6f47c1864100bcd4d656445194c (patch)
treeaebd998358bc3902aff36ac2cd47b2a6163497ea
parent09d8f515b90d8acd71b4b897622927287e863346 (diff)
downloadffmpeg-a39b603bf6d8c6f47c1864100bcd4d656445194c.tar.gz
lavf/utils: fix overestimation of the rational number density.
Fixes Ticket498 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index e79f98e62d..b15582acb1 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2959,7 +2959,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
goto fail;
}
if(av_cmp_q(st->sample_aspect_ratio, st->codec->sample_aspect_ratio)
- && FFABS(av_q2d(st->sample_aspect_ratio) - av_q2d(st->codec->sample_aspect_ratio)) > 0.001
+ && FFABS(av_q2d(st->sample_aspect_ratio) - av_q2d(st->codec->sample_aspect_ratio)) > 0.004*av_q2d(st->sample_aspect_ratio)
){
av_log(s, AV_LOG_ERROR, "Aspect ratio mismatch between encoder and muxer layer\n");
ret = AVERROR(EINVAL);