changeset 6343:a90f19fbad6f libavformat

rtpdec_xiph: Correct the bitmask for num_pkts
author mstorsjo
date Wed, 04 Aug 2010 17:22:25 +0000
parents 29171d6af13b
children eff600bc4261
files rtpdec_xiph.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtpdec_xiph.c	Mon Aug 02 07:28:35 2010 +0000
+++ b/rtpdec_xiph.c	Wed Aug 04 17:22:25 2010 +0000
@@ -85,7 +85,7 @@
     ident       = AV_RB24(buf);
     fragmented  = buf[3] >> 6;
     tdt         = (buf[3] >> 4) & 3;
-    num_pkts    = buf[3] & 7;
+    num_pkts    = buf[3] & 0xf;
     pkt_len     = AV_RB16(buf + 4);
 
     if (pkt_len > len - 6) {