diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-03 16:32:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-03 16:32:17 +0200 |
commit | 85ea5c6e73587b6a7e37ec2e086dab4f7c408b80 (patch) | |
tree | 17c7c33ee34f4d2d88dd8b9e765ec241178aecab /libavformat | |
parent | bf5c3bac51e422580aad011fcd927c818542f054 (diff) | |
download | ffmpeg-85ea5c6e73587b6a7e37ec2e086dab4f7c408b80.tar.gz |
lavf/utils: fix overestimation of the rational number density.
Fixes Ticket498
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-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 65c244a48f..7fe2a954a8 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3016,7 +3016,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); |