Mercurial > libavformat.hg
diff rdt.c @ 5119:bb9cdd9ad9de libavformat
Don't use a pointer-to-flags/timestamp in ff_rm_parse_packet(); the function
used to return packet data, which might update the flags/timestamp to be
used for the next packet data returned by the demuxer. However, that was
separated out into a new function, and the flags/timestamp are thus never
updated within ff_rm_parse_packet() anymore, and thus do not need to be
a pointer.
author | rbultje |
---|---|
date | Thu, 30 Jul 2009 15:04:19 +0000 |
parents | 75e51cba276e |
children | e15a959963f1 |
line wrap: on
line diff
--- a/rdt.c Thu Jul 30 08:21:11 2009 +0000 +++ b/rdt.c Thu Jul 30 15:04:19 2009 +0000 @@ -308,7 +308,7 @@ init_put_byte(&pb, buf, len, 0, NULL, NULL, NULL, NULL); flags = (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, flags, *timestamp); pos = url_ftell(&pb); if (res < 0) return res;