Commit b66b58f7 authored by Andrey Utkin's avatar Andrey Utkin Committed by Michael Niedermayer

Fix aspect ratio mismatch message

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c15f3bd3
...@@ -3006,8 +3006,8 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options) ...@@ -3006,8 +3006,8 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
if(av_cmp_q(st->sample_aspect_ratio, st->codec->sample_aspect_ratio) 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.004*av_q2d(st->sample_aspect_ratio) && 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 " av_log(s, AV_LOG_ERROR, "Aspect ratio mismatch between muxer "
"(%d/%d) and muxer layer (%d/%d)\n", "(%d/%d) and encoder layer (%d/%d)\n",
st->sample_aspect_ratio.num, st->sample_aspect_ratio.den, st->sample_aspect_ratio.num, st->sample_aspect_ratio.den,
st->codec->sample_aspect_ratio.num, st->codec->sample_aspect_ratio.num,
st->codec->sample_aspect_ratio.den); st->codec->sample_aspect_ratio.den);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment