[vlc-commits] Avformat: don't warn about AVCODEC_ID_NONE tracks

Jean-Baptiste Kempf git at videolan.org
Sat Aug 9 10:49:28 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Aug  9 10:48:37 2014 +0200| [37e7db4956c0e5605ce207435ac81a7be0ef0d53] | committer: Jean-Baptiste Kempf

Avformat: don't warn about AVCODEC_ID_NONE tracks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37e7db4956c0e5605ce207435ac81a7be0ef0d53
---

 modules/demux/avformat/demux.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 7349db2..e424fbd 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -334,6 +334,12 @@ int OpenDemux( vlc_object_t *p_this )
         vlc_fourcc_t fcc;
         const char *psz_type = "unknown";
 
+        if( cc->codec_id == AV_CODEC_ID_NONE )
+        {
+            p_sys->i_tk++;
+            continue;
+        }
+
         if( !GetVlcFourcc( cc->codec_id, NULL, &fcc, NULL ) )
             fcc = VLC_FOURCC( 'u', 'n', 'd', 'f' );
 



More information about the vlc-commits mailing list