Mercurial > libavformat.hg
changeset 2154:b849507913da libavformat
Remove the unnecessary masking when extracting the start bit in the H.264 RTP
parsing code.
author | takis |
---|---|
date | Thu, 07 Jun 2007 14:47:40 +0000 |
parents | 6d873194ff86 |
children | a661d4e7cab2 |
files | rtp_h264.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtp_h264.c Thu Jun 07 14:13:59 2007 +0000 +++ b/rtp_h264.c Thu Jun 07 14:47:40 2007 +0000 @@ -270,7 +270,7 @@ // these are the same as above, we just redo them here for clarity... uint8_t fu_indicator = nal; uint8_t fu_header = *buf; // read the fu_header. - uint8_t start_bit = (fu_header & 0x80) >> 7; + uint8_t start_bit = fu_header >> 7; // uint8_t end_bit = (fu_header & 0x40) >> 6; uint8_t nal_type = (fu_header & 0x1f); uint8_t reconstructed_nal;