nalu: Move common macros for H.264 and HEVC into nalu.h.
nalu: Make a common function to find the start code.

Fix possible infinite loop when whole stream is filled with 0.