]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Reject sipr flavor > 3
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 2 Dec 2019 09:41:12 +0000 (10:41 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 1 May 2020 04:52:34 +0000 (06:52 +0200)
commit8287c201536e52f2765cfa9a70551814a6f36ebb
tree0892b5874ebae167f6b02ee7893365ae810c8d66
parent9dd2587f60015a211f3120233e44e829ffd66c6f
avformat/matroskadec: Reject sipr flavor > 3

Only flavors 0..3 seem to exist. E.g. rmdec.c treats any flavor > 3
as invalid data. Furthermore, we do not know how big the packets to
create ought to be given that for sipr these values are not read from
the bitstream, but from a table.

Furthermore, flavor is only used for sipr, so only check it for sipr;
rmdec.c does the same. (The old check for flavor being < 0 was
always wrong given that flavor is an int that is read via avio_rb16(),
so it has been removed completely.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskadec.c