[FFmpeg-cvslog] libavformat/dashenc: Reduce confusion in par error message

Chris Miceli git at videolan.org
Tue Sep 1 00:46:30 EEST 2020


ffmpeg | branch: master | Chris Miceli <chris at miceli.net.au> | Mon Aug 31 14:16:39 2020 +1000| [41366522899f209d116d663ebedf00e3282e7bb2] | committer: Michael Niedermayer

libavformat/dashenc: Reduce confusion in par error message

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 at akamai.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41366522899f209d116d663ebedf00e3282e7bb2
---

 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index dc3306a56a..2d757b3a87 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list