[FFmpeg-devel] [PATCH] lavf: prefer "SAR" over "PAR" in dump_stream_format()

Stefano Sabatini stefano.sabatini-lala at poste.it
Wed Jul 27 11:12:17 CEST 2011


"SAR" (Sample Aspect Ratio) is globally preferred over "PAR" (Pixel
Aspect Ratio), although it shares the same semantics.

For example the corresponding AVStream is called sample_aspect_ratio,
and libavfilter has a filter named setsar. Thus prefer the term "SAR"
in the av_dump_format() output for avoiding some confusion.
---
 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 38407b9..7489104 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3402,7 +3402,7 @@ static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_out
                   st->codec->width*st->sample_aspect_ratio.num,
                   st->codec->height*st->sample_aspect_ratio.den,
                   1024*1024);
-        av_log(NULL, AV_LOG_INFO, ", PAR %d:%d DAR %d:%d",
+        av_log(NULL, AV_LOG_INFO, ", SAR %d:%d DAR %d:%d",
                  st->sample_aspect_ratio.num, st->sample_aspect_ratio.den,
                  display_aspect_ratio.num, display_aspect_ratio.den);
     }
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list