vlc | branch: master | Zhao Zhili <quinkbl...@foxmail.com> | Tue Jan 30 09:56:07 2018 +0800| [0c0db7b6a3d303f370f4775098a3a826d28125c1] | committer: Jean-Baptiste Kempf
demux: avformat: fix use NULL as string long_name can be NULL if enable-small Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c0db7b6a3d303f370f4775098a3a826d28125c1 --- modules/demux/avformat/demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c index 6932462996..2538f79f15 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -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'); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits