aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/stldec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-07-29 21:56:55 +0200
committerJames Almer <jamrial@gmail.com>2019-12-31 16:57:37 -0300
commitc1fb94fcacf3208ea8396953351a00af56e3f336 (patch)
treec14ba9980255af8e9ca871317ad3bbc5007f8aa1 /libavformat/stldec.c
parent2852aa50842dae99fc1f2988e256fef1052e7b57 (diff)
downloadffmpeg-c1fb94fcacf3208ea8396953351a00af56e3f336.tar.gz
cbs_mpeg2: Rearrange start code search
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: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 276b21a586900b4692efbb99e4789e05d927708e)
Diffstat (limited to 'libavformat/stldec.c')
0 files changed, 0 insertions, 0 deletions