[FFmpeg-cvslog] lavf/utils: fix overestimation of the rational number density.
Michael Niedermayer
git at videolan.org
Mon Oct 3 16:48:09 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 3 16:32:17 2011 +0200| [85ea5c6e73587b6a7e37ec2e086dab4f7c408b80] | committer: Michael Niedermayer
lavf/utils: fix overestimation of the rational number density.
Fixes Ticket498
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85ea5c6e73587b6a7e37ec2e086dab4f7c408b80
---
libavformat/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 65c244a..7fe2a95 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);
More information about the ffmpeg-cvslog
mailing list