diff options
author | Jacek Jendrzej <overx300@gmail.com> | 2018-08-07 11:30:04 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2018-08-07 12:31:49 +0800 |
commit | 2f45378ba14417cbb4fc9494ba941cb06443c4f9 (patch) | |
tree | bd70a4c978d39ab91c4fd01e9d5e67f2bcc51969 /libavformat/dashdec.c | |
parent | 6434b84460bb8b996bc52b33b2012e6b05d3a459 (diff) | |
download | ffmpeg-2f45378ba14417cbb4fc9494ba941cb06443c4f9.tar.gz |
avformat/dashdec: fix for ticket #7336
fix for ticket #7336
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/dashdec.c')
-rw-r--r-- | libavformat/dashdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 89f3ac2759..f0939f4425 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1936,7 +1936,8 @@ static int dash_read_header(AVFormatContext *s) s->duration = (int64_t) c->media_presentation_duration * AV_TIME_BASE; } - c->is_init_section_common_video = is_common_init_section_exist(c->videos, c->n_videos); + if(c->n_videos) + c->is_init_section_common_video = is_common_init_section_exist(c->videos, c->n_videos); /* Open the demuxer for video and audio components if available */ for (i = 0; i < c->n_videos; i++) { @@ -1952,7 +1953,8 @@ static int dash_read_header(AVFormatContext *s) ++stream_index; } - c->is_init_section_common_audio = is_common_init_section_exist(c->audios, c->n_audios); + if(c->n_audios) + c->is_init_section_common_audio = is_common_init_section_exist(c->audios, c->n_audios); for (i = 0; i < c->n_audios; i++) { struct representation *cur_audio = c->audios[i]; |