H264 parsing - slice header detection

c, c++, h.264, visual-c++

Solution

The slice header syntax is discussed on page 36 (section 7.3.3) of the H.264 standard.

It might be worth having a look at the reference software.

Problem

I know that in h264 we can detect a NAL Unit by the bit pattern `0x000001`. Is there an equivalent method to detect a slice header in a NAL Unit? How does one handle multi-slice NAL units? Currently I'm using parsing code for h264 and get the slice header in a respective structure.

Original source