diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-08-10 11:20:09 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-08-10 11:20:09 +0200 |
commit | 6c52432b4812acd68c2b93cdc367828cb73b68a4 (patch) | |
tree | 09e684c00ec5fd33812147ebab48cf8f3a1d8a8b | |
parent | e1def4ffec209c0949807f8c505539dc6d709c31 (diff) | |
parent | 8e34089e265a6b01e1e3301e8864439d26793753 (diff) | |
download | ffmpeg-6c52432b4812acd68c2b93cdc367828cb73b68a4.tar.gz |
Merge commit '8e34089e265a6b01e1e3301e8864439d26793753'
* commit '8e34089e265a6b01e1e3301e8864439d26793753':
movenc: Check that frag_info entries exist in mov_write_sidx_tag
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index e03c4ec082..d04ac6b4b4 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3680,6 +3680,8 @@ static int mov_write_sidx_tag(AVIOContext *pb, } } else { entries = track->nb_frag_info; + if (entries <= 0) + return 0; presentation_time = track->frag_info[0].time; } |