vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <j...@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 <j...@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' ); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits