comparison 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
comparison
equal deleted inserted replaced
5118:e88e7ac64898 5119:bb9cdd9ad9de
306 int pos; 306 int pos;
307 307
308 init_put_byte(&pb, buf, len, 0, NULL, NULL, NULL, NULL); 308 init_put_byte(&pb, buf, len, 0, NULL, NULL, NULL, NULL);
309 flags = (flags & RTP_FLAG_KEY) ? 2 : 0; 309 flags = (flags & RTP_FLAG_KEY) ? 2 : 0;
310 res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt, 310 res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt,
311 &seq, &flags, timestamp); 311 &seq, flags, *timestamp);
312 pos = url_ftell(&pb); 312 pos = url_ftell(&pb);
313 if (res < 0) 313 if (res < 0)
314 return res; 314 return res;
315 if (res > 0) { 315 if (res > 0) {
316 if (st->codec->codec_id == CODEC_ID_AAC) { 316 if (st->codec->codec_id == CODEC_ID_AAC) {