Skip to content

Commit

Permalink
rdt: Use a separate variable to clarify the different value namespaces
Browse files Browse the repository at this point in the history
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ö <[email protected]>
  • Loading branch information
mstorsjo committed Mar 4, 2015
1 parent c13ab42 commit b72b212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libavformat/rdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b72b212

Please sign in to comment.