diff options
author | Rafaël Carré <funman@videolan.org> | 2012-01-28 23:29:26 -0500 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-01-30 07:32:57 +0100 |
commit | 420df8b7c414cfd0cae29930344889651825f9d0 (patch) | |
tree | 50ace3a2dab4cacb267f60ca634268599a559eef | |
parent | cc09dc7863e4ffdf5d7c18472721c5ce739f26b0 (diff) | |
download | ffmpeg-420df8b7c414cfd0cae29930344889651825f9d0.tar.gz |
avformat_write_header(): detail error message
Give the exact aspect ratios when there is a mismatch between encoder
and muxer.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 41450971af..9c59947fb7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2782,7 +2782,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options) goto fail; } if(av_cmp_q(st->sample_aspect_ratio, st->codec->sample_aspect_ratio)){ - av_log(s, AV_LOG_ERROR, "Aspect ratio mismatch between encoder and muxer layer\n"); + av_log(s, AV_LOG_ERROR, "Aspect ratio mismatch between encoder " + "(%d/%d) and muxer layer (%d/%d)\n", + st->sample_aspect_ratio.num, st->sample_aspect_ratio.den, + st->codec->sample_aspect_ratio.num, + st->codec->sample_aspect_ratio.den); ret = AVERROR(EINVAL); goto fail; } |