Browse code

rtpdec_xiph: Correct the bitmask for num_pkts

Originally committed as revision 24696 to svn://svn.ffmpeg.org/ffmpeg/trunk

Martin Storsjö authored on 2010/08/05 02:22:25
Showing 1 changed files
... ...
@@ -85,7 +85,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
85 85
     ident       = AV_RB24(buf);
86 86
     fragmented  = buf[3] >> 6;
87 87
     tdt         = (buf[3] >> 4) & 3;
88
-    num_pkts    = buf[3] & 7;
88
+    num_pkts    = buf[3] & 0xf;
89 89
     pkt_len     = AV_RB16(buf + 4);
90 90
 
91 91
     if (pkt_len > len - 6) {