aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rdt.c
diff options
context:
space:
mode:
authorMartin Storsjö2015-03-04 10:00:08 +0200
committerMartin Storsjö2015-03-05 00:26:42 +0200
commitb72b212a4c43563f1b9fc3ce9a5ff91f89b857ac (patch)
tree08317a90861ddaa5b141bdac6fcd01d872c8d844 /libavformat/rdt.c
parentc13ab42a0a3979b2c292b2315487f5f5e14ba26b (diff)
rdt: Use a separate variable to clarify the different value namespaces
The original flags variable contains rtpdec flags, while the rmflags variable contains RM flag bits which have a completely different definition. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r--libavformat/rdt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index b596334d30..5478f88fc6 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -299,12 +299,12 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
AVIOContext pb;
if (rdt->audio_pkt_cnt == 0) {
- int pos;
+ int pos, rmflags;
ffio_init_context(&pb, buf, len, 0, NULL, NULL, NULL, NULL);
- flags = (flags & RTP_FLAG_KEY) ? 2 : 0;
+ rmflags = (flags & RTP_FLAG_KEY) ? 2 : 0;
res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt,
- &seq, flags, *timestamp);
+ &seq, rmflags, *timestamp);
pos = avio_tell(&pb);
if (res < 0)
return res;