Mercurial > libavformat.hg
comparison rtp_h264.c @ 2155:a661d4e7cab2 libavformat
Remove the unnecessary masking when reconstructing the NAL unit header in the
H.264 RTP parsing code.
author | takis |
---|---|
date | Thu, 07 Jun 2007 14:48:29 +0000 |
parents | b849507913da |
children | cfd57cd5252b |
comparison
equal
deleted
inserted
replaced
2154:b849507913da | 2155:a661d4e7cab2 |
---|---|
275 uint8_t nal_type = (fu_header & 0x1f); | 275 uint8_t nal_type = (fu_header & 0x1f); |
276 uint8_t reconstructed_nal; | 276 uint8_t reconstructed_nal; |
277 | 277 |
278 // reconstruct this packet's true nal; only the data follows.. | 278 // reconstruct this packet's true nal; only the data follows.. |
279 reconstructed_nal = fu_indicator & (0xe0); // the original nal forbidden bit and NRI are stored in this packet's nal; | 279 reconstructed_nal = fu_indicator & (0xe0); // the original nal forbidden bit and NRI are stored in this packet's nal; |
280 reconstructed_nal |= (nal_type & 0x1f); | 280 reconstructed_nal |= nal_type; |
281 | 281 |
282 // skip the fu_header... | 282 // skip the fu_header... |
283 buf++; | 283 buf++; |
284 len--; | 284 len--; |
285 | 285 |