h264: refactor NAL decode loop