Commit 7d3eba0d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

AVformat: do not use static attachment pictures as stream

(cherry picked from commit 89a3302c734f2195b620e1bca12670834abd18c9)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e026b6eb
......@@ -278,6 +278,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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment