avformat/mov: dont print frma warning when format is the same
authorEran Kornblau <eran.kornblau@kaltura.com>
Thu, 4 Feb 2016 13:31:25 +0000 (15:31 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 Feb 2016 00:11:04 +0000 (01:11 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c

index e2f107f..944bd86 100644 (file)
@@ -4005,9 +4005,11 @@ static int mov_read_frma(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         break;
 
     default:
-        av_log(c->fc, AV_LOG_WARNING,
-               "ignoring 'frma' atom of '%.4s', stream format is '%.4s'\n",
-               (char*)&format, (char*)&sc->format);
+        if (format != sc->format) {
+            av_log(c->fc, AV_LOG_WARNING,
+                   "ignoring 'frma' atom of '%.4s', stream format is '%.4s'\n",
+                   (char*)&format, (char*)&sc->format);
+        }
         break;
     }