• Andreas Rheinhardt's avatar
    cbs_mpeg2: Rearrange start code search · 276b21a5
    Andreas Rheinhardt authored
    1. Currently, cbs_mpeg2_split_fragment uses essentially three variables
    to hold the start code values found by avpriv_find_start_code. By
    rearranging the code, one of them can be omitted.
    2. The return value of avpriv_find_start_code points to the byte after
    the byte containing the start code identifier (or to the byte after the
    last byte of the fragment's data if no start code was found), but
    cbs_mpeg2_split_fragment needs to work with the pointer to the byte
    containing the start code identifier; it already did this, but in a
    clumsy way. This has been changed.
    3. Also use the correct type for the variable holding the
    CodedBitstreamUnitType.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    276b21a5
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...