# HG changeset patch # User michael # Date 1221827858 0 # Node ID e0eb33b98f43e468f81beb846c8a34833ec9b8a9 # Parent 2768ffe4332bbb2ed9ba2a3e58fb771c05f3c145 Ensure that muxer and encoder aspect ratios match. So no invalid files are generated. diff -r 2768ffe4332b -r e0eb33b98f43 utils.c --- a/utils.c Thu Sep 18 05:25:29 2008 +0000 +++ b/utils.c Fri Sep 19 12:37:38 2008 +0000 @@ -2457,6 +2457,10 @@ av_log(s, AV_LOG_ERROR, "dimensions not set\n"); 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; }