Commit 64ff2a71 authored by michael's avatar michael

Ensure that muxer and encoder aspect ratios match. So no

invalid files are generated.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15367 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9f72ac92
...@@ -2457,6 +2457,10 @@ int av_write_header(AVFormatContext *s) ...@@ -2457,6 +2457,10 @@ int av_write_header(AVFormatContext *s)
av_log(s, AV_LOG_ERROR, "dimensions not set\n"); av_log(s, AV_LOG_ERROR, "dimensions not set\n");
return -1; return -1;
} }
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");
return -1;
}
break; break;
} }
......
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