diff --git a/3rdparty/ffmpeg/libavformat/nsvdec.c b/3rdparty/ffmpeg/libavformat/nsvdec.c index 95fab644..b8353a7b 100644 --- a/3rdparty/ffmpeg/libavformat/nsvdec.c +++ b/3rdparty/ffmpeg/libavformat/nsvdec.c @@ -350,9 +350,12 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) if (!nsv->nsvs_file_offset) return AVERROR(ENOMEM); - for(i=0;insvs_file_offset[i] = avio_rl32(pb) + size; - + } + if(table_entries > table_entries_used && avio_rl32(pb) == MKTAG('T','O','C','2')) { nsv->nsvs_timestamps = av_malloc_array((unsigned)table_entries_used, sizeof(uint32_t));