summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_xiph.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-08-04 17:22:25 +0000
committerMartin Storsjö <martin@martin.st>2010-08-04 17:22:25 +0000
commit737b3972b5272f99beadfebca64eaf81e98fcf4d (patch)
tree0dc7d4a1478ccbf9ad0fa3e880e9993b06358acf /libavformat/rtpdec_xiph.c
parent49d63851cb00ab8eb5064c4dae3937f568368119 (diff)
rtpdec_xiph: Correct the bitmask for num_pkts
Originally committed as revision 24696 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec_xiph.c')
-rw-r--r--libavformat/rtpdec_xiph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index 4c44c8a370..9b5e3e3e61 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -85,7 +85,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
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) {