]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: check init_section before use it.
authorSteven Liu <liuqi05@kuaishou.com>
Mon, 18 Jan 2021 06:22:07 +0000 (14:22 +0800)
committerSteven Liu <liuqi05@kuaishou.com>
Thu, 4 Feb 2021 02:30:32 +0000 (10:30 +0800)
commit756897eff4950ad0c969b891d7c4af5df0406c25
tree9c159ef8eef62e76a8d247aa316daffbaadd8649
parenta8b3a51790bf5bcc498844e1cd6f0097ecb455c1
avformat/dashdec: check init_section before use it.

because there have no Initialization in SegmentTemplate,
so it will have no init_section for init segment file.
but in the is_common_init_section_exist function it will be used for
check to url, url_offset and size, so check init_section
before use init_section.
And fix code style in is_common_init_section_exist,
make the code block short when it too long.

fix ticket: 9062

Signed-off-by: liuqi05 <liuqi05@kuaishou.com>
libavformat/dashdec.c