avformat/nsvdec: Do not parse multiple NSVf
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Aug 2018 10:23:20 +0000 (12:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Aug 2018 00:32:41 +0000 (02:32 +0200)
commit78d4b6bd43fc266a2ee926f0555c8782246f9445
treed9876490f10aca78b3e7aa0341258986c616293b
parent77429b4217bd2366c5f05479086b3f9613d640ee
avformat/nsvdec: Do not parse multiple NSVf

The specification states "NSV files may contain a single file header. "
Fixes: out of array access
Fixes: nsv-asan-002f473f726a0dcbd3bd53e422c4fc40b3cf3421

Found-by: Paul Ch <paulcher@icloud.com>
Tested-by: Paul Ch <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/nsvdec.c