[vlc-commits] Avformat: don't warn about AVCODEC_ID_NONE tracks
Jean-Baptiste Kempf
git at videolan.org
Sun Aug 10 20:17:08 CEST 2014
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Aug 9 10:48:37 2014 +0200| [fff6a620f319eb7bbfd18b8d2b79d81bae55155a] | committer: Jean-Baptiste Kempf
Avformat: don't warn about AVCODEC_ID_NONE tracks
(cherry picked from commit 37e7db4956c0e5605ce207435ac81a7be0ef0d53)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=fff6a620f319eb7bbfd18b8d2b79d81bae55155a
---
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