Skip to content

h264parse/h265parse: Fix emulation prevention byte detect.

wangfei requested to merge wangfei/gst-plugins-bad:epb into master

Add epb_cache instead of cache in NalReader to detect emulation prevention byte, because only avaliable data that will be saved into cache. When detect epb, three consecutive bytes should be used include last epb if it is exist in the three bytes.

For example, if bitstream order is 0x00 0x00 0x03 0x00 0x03, the 5th byte should not be regard as epb.

Merge request reports