aizvorski / h264bitstream

A complete set of functions to read and write H.264 video bitstreams, in particular to examine or modify headers.
GNU Lesser General Public License v2.1
732 stars 238 forks source link

fix(h264_analyze): fix incorrect parse for duplicate startcode #41

Open sharpbai opened 3 years ago

sharpbai commented 3 years ago

Fix parsing error when duplicate 00 00 00 01 occurs. For example 00 00 00 01 00 00 00 01 Original code will bypass first startcode but not modify "p" and "sz", which result in parse error.