h264: Fix infinite loop when series of byte stream end by
trailing_zero_8bits.
hevc: Fix infinite loop when series of byte stream end by
trailing_zero_8bits.