Commit 0c0db7b6 authored by Zhao Zhili's avatar Zhao Zhili Committed by Jean-Baptiste Kempf

demux: avformat: fix use NULL as string

long_name can be NULL if enable-small
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 497fb40d
......@@ -396,7 +396,7 @@ int avformat_OpenDemux( vlc_object_t *p_this )
es_fmt.i_original_fourcc = VLC_FOURCC('L','A','T','M');
es_fmt.b_packetized = false;
}
else if(cp->codec_id == AV_CODEC_ID_AAC &&
else if(cp->codec_id == AV_CODEC_ID_AAC && p_sys->fmt->long_name &&
strstr(p_sys->fmt->long_name, "raw ADTS AAC"))
{
es_fmt.i_original_fourcc = VLC_FOURCC('A','D','T','S');
......
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