[FFmpeg-cvslog] r16703 - trunk/libavformat/mov.c

bcoudurier subversion
Tue Jan 20 22:06:57 CET 2009


Author: bcoudurier
Date: Tue Jan 20 22:06:57 2009
New Revision: 16703

Log:
change sample aspect ratio test to be more clear, print old one

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Tue Jan 20 17:19:13 2009	(r16702)
+++ trunk/libavformat/mov.c	Tue Jan 20 22:06:57 2009	(r16703)
@@ -439,10 +439,11 @@ static int mov_read_pasp(MOVContext *c, 
     const int den = get_be32(pb);
     AVStream * const st = c->fc->streams[c->fc->nb_streams-1];
     if (den != 0) {
-        if ((st->sample_aspect_ratio.den && den != st->sample_aspect_ratio.den) ||
-            (st->sample_aspect_ratio.num && num != st->sample_aspect_ratio.num))
+        if ((st->sample_aspect_ratio.den != 1 || st->sample_aspect_ratio.num) && // default
+            (den != st->sample_aspect_ratio.den || num != st->sample_aspect_ratio.num))
             av_log(c->fc, AV_LOG_WARNING,
-                   "sample aspect ratio already set, overriding by 'pasp' atom\n");
+                   "sample aspect ratio already set to %d:%d, overriding by 'pasp' atom\n",
+                   st->sample_aspect_ratio.num, st->sample_aspect_ratio.den);
         st->sample_aspect_ratio.num = num;
         st->sample_aspect_ratio.den = den;
     }




More information about the ffmpeg-cvslog mailing list