[FFmpeg-cvslog] r9239 - trunk/libavformat/rtp_h264.c

takis subversion
Thu Jun 7 16:47:41 CEST 2007


Author: takis
Date: Thu Jun  7 16:47:40 2007
New Revision: 9239

Log:
Remove the unnecessary masking when extracting the start bit in the H.264 RTP
parsing code.


Modified:
   trunk/libavformat/rtp_h264.c

Modified: trunk/libavformat/rtp_h264.c
==============================================================================
--- trunk/libavformat/rtp_h264.c	(original)
+++ trunk/libavformat/rtp_h264.c	Thu Jun  7 16:47:40 2007
@@ -270,7 +270,7 @@ static int h264_handle_packet(RTPDemuxCo
             // 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;




More information about the ffmpeg-cvslog mailing list