Commit ce946ab3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avformat demux: don't add empty tracks in AVMEDIA_TYPE_DATA cases

Ref: #5204
parent 230d6db1
......@@ -373,13 +373,14 @@ int OpenDemux( vlc_object_t *p_this )
}
else msg_Warn( p_demux, "unsupported attachment type (%u) in ffmpeg demux", cc->codec_id );
}
break;
else
#endif
{
if( cc->codec_type == AVMEDIA_TYPE_DATA )
psz_type = "data";
if( cc->codec_type == AVMEDIA_TYPE_DATA )
psz_type = "data";
msg_Warn( p_demux, "unsupported track type in ffmpeg demux" );
msg_Warn( p_demux, "unsupported track type in ffmpeg demux" );
}
break;
}
......@@ -393,6 +394,7 @@ int OpenDemux( vlc_object_t *p_this )
#ifdef HAVE_FFMPEG_CODEC_ATTACHMENT
if( cc->codec_type != AVMEDIA_TYPE_ATTACHMENT )
#endif
if( cc->codec_type != AVMEDIA_TYPE_DATA )
{
const bool b_ogg = !strcmp( p_sys->fmt->name, "ogg" );
const uint8_t *p_extra = cc->extradata;
......
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