aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-07-29 21:56:56 +0200
committerMark Thompson <sw@jkqxz.net>2019-07-29 23:17:46 +0100
commitfd93d5efe64206d5f1bce8c702602353444c0c1a (patch)
tree4b7a8514307799914ad9225afb9f2014ba063a6f /.gitignore
parent276b21a586900b4692efbb99e4789e05d927708e (diff)
downloadffmpeg-fd93d5efe64206d5f1bce8c702602353444c0c1a.tar.gz
cbs_mpeg2: Fix parsing the last unit
There is one way to find out if avpriv_find_start_code has found a start code or not: One has to check whether the state variable contains a start code, i.e. whether the three most significant bytes are 0x00 00 01. Checking for whether the return value is the end of the designated buffer is not enough: If the last four bytes constitute a start code, the return value is also the end of the buffer. This happens with sequence_end_codes which have been ignored for exactly this reason, although e.g. all three files used for fate tests of cbs_mpeg2 contain sequence_end_codes. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions