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, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit172bb520c98fa96129d909dc9b6c6872702571b6
treea3ee32ab83f3725ecd9ee716394fccf1404ce535
parent4babf70c7efbcc6c77839944007815e58a380ec7
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>
(cherry picked from commit 78d4b6bd43fc266a2ee926f0555c8782246f9445)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/nsvdec.c