h264: reset ref count if decoding the slice header fails