]> git.sesse.net Git - ffmpeg/commitdiff
libavformat/dashenc: Reduce confusion in par error message
authorChris Miceli <chris@miceli.net.au>
Mon, 31 Aug 2020 04:16:39 +0000 (14:16 +1000)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 31 Aug 2020 21:43:06 +0000 (23:43 +0200)
In ticket #8754 there is discourse surrounding the error
message which is printed upon a mismatched aspect ratio in
derived encodings. This should make it clearer to the user
as to the issues which they are experiencing.

Reviewed-by: "Jeyapal, Karthick" <kjeyapal@akamai.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/dashenc.c

index dc3306a56a2b950c3955d429b0228229459544b9..2d757b3a8783be07b96a43b5ba525198ca22aace 100644 (file)
@@ -1686,7 +1686,7 @@ static int dash_init(AVFormatContext *s)
                       1024 * 1024);
 
             if (as->par.num && av_cmp_q(par, as->par)) {
-                av_log(s, AV_LOG_ERROR, "Conflicting stream par values in Adaptation Set %d\n", os->as_idx);
+                av_log(s, AV_LOG_ERROR, "Conflicting stream aspect ratios values in Adaptation Set %d. Please ensure all adaptation sets have the same aspect ratio\n", os->as_idx);
                 return AVERROR(EINVAL);
             }
             as->par = par;