diff options
author | Michael Niedermayer <[email protected]> | 2011-10-03 16:32:17 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <[email protected]> | 2011-10-09 01:14:21 +0200 |
commit | a39b603bf6d8c6f47c1864100bcd4d656445194c (patch) | |
tree | aebd998358bc3902aff36ac2cd47b2a6163497ea | |
parent | 09d8f515b90d8acd71b4b897622927287e863346 (diff) |
lavf/utils: fix overestimation of the rational number density.
Fixes Ticket498
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavformat/utils.c | 2 |
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); |