• Andreas Rheinhardt's avatar
    cbs_mpeg2: Fix parsing the last unit · fd93d5ef
    Andreas Rheinhardt authored
    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: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    fd93d5ef
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...