summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-06-07 14:47:40 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-06-07 14:47:40 +0000
commit6ab6525e116c3f11969c90ce6ed480ab1cbd273e (patch)
tree659cbe6c2082a224fde821b213e56632d2219eed /libavformat
parentc64bab0805f35ef11ea4b689c24a7ff64da4bffa (diff)
Remove the unnecessary masking when extracting the start bit in the H.264 RTP
parsing code. Originally committed as revision 9239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtp_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index 0ae6aa664d..69f4608366 100644
--- a/libavformat/rtp_h264.c
+++ b/libavformat/rtp_h264.c
@@ -270,7 +270,7 @@ static int h264_handle_packet(RTPDemuxContext * s,
// 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;