vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Fri Nov 16 17:13:02 2012 +0100| [89a3302c734f2195b620e1bca12670834abd18c9] | committer: Jean-Baptiste Kempf
AVformat: do not use static attachment pictures as stream > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89a3302c734f2195b620e1bca12670834abd18c9 --- 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 734502d..b683a97 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -286,6 +286,12 @@ int OpenDemux( vlc_object_t *p_this ) if( !GetVlcFourcc( cc->codec_id, NULL, &fcc, NULL ) ) fcc = VLC_FOURCC( 'u', 'n', 'd', 'f' ); +#if LIBAVFORMAT_VERSION_INT >= ((54<<16)+(2<<8)+0) + /* Do not use the cover art as a stream */ + if( s->disposition == AV_DISPOSITION_ATTACHED_PIC ) + continue; +#endif + switch( cc->codec_type ) { case AVMEDIA_TYPE_AUDIO: _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
