mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Don't (ab)use PKT_FLAG_* in RTP code, since the two have virtually nothing
in common except for this one value. Change was requested by Luca in the "[FFmpeg-devel] RTP mark bit not passed to parse_packet" thread. Originally committed as revision 17615 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
26d6b3e230
commit
a68d44ed6f
@ -306,7 +306,7 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
|
|||||||
int pos;
|
int pos;
|
||||||
|
|
||||||
init_put_byte(&pb, buf, len, 0, NULL, NULL, NULL, NULL);
|
init_put_byte(&pb, buf, len, 0, NULL, NULL, NULL, NULL);
|
||||||
flags = (flags & PKT_FLAG_KEY) ? 2 : 0;
|
flags = (flags & RTP_FLAG_KEY) ? 2 : 0;
|
||||||
res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt,
|
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);
|
pos = url_ftell(&pb);
|
||||||
@ -361,7 +361,7 @@ ff_rdt_parse_packet(RDTDemuxContext *s, AVPacket *pkt,
|
|||||||
if (is_keyframe &&
|
if (is_keyframe &&
|
||||||
(set_id != s->prev_set_id || timestamp != s->prev_timestamp ||
|
(set_id != s->prev_set_id || timestamp != s->prev_timestamp ||
|
||||||
stream_id != s->prev_stream_id)) {
|
stream_id != s->prev_stream_id)) {
|
||||||
flags |= PKT_FLAG_KEY;
|
flags |= RTP_FLAG_KEY;
|
||||||
s->prev_set_id = set_id;
|
s->prev_set_id = set_id;
|
||||||
s->prev_timestamp = timestamp;
|
s->prev_timestamp = timestamp;
|
||||||
}
|
}
|
||||||
|
@ -92,6 +92,7 @@ typedef struct {
|
|||||||
uint32_t jitter; ///< estimated jitter.
|
uint32_t jitter; ///< estimated jitter.
|
||||||
} RTPStatistics;
|
} RTPStatistics;
|
||||||
|
|
||||||
|
#define RTP_FLAG_KEY 0x1 ///< RTP packet contains a keyframe
|
||||||
/**
|
/**
|
||||||
* Packet parsing for "private" payloads in the RTP specs.
|
* Packet parsing for "private" payloads in the RTP specs.
|
||||||
*
|
*
|
||||||
@ -102,7 +103,7 @@ typedef struct {
|
|||||||
* @param timestamp pointer in which to write the timestamp of this RTP packet
|
* @param timestamp pointer in which to write the timestamp of this RTP packet
|
||||||
* @param buf pointer to raw RTP packet data
|
* @param buf pointer to raw RTP packet data
|
||||||
* @param len length of buf
|
* @param len length of buf
|
||||||
* @param flags flags from the RTP packet header (PKT_FLAG_*)
|
* @param flags flags from the RTP packet header (RTP_FLAG_*)
|
||||||
*/
|
*/
|
||||||
typedef int (*DynamicPayloadPacketHandlerProc) (AVFormatContext *ctx,
|
typedef int (*DynamicPayloadPacketHandlerProc) (AVFormatContext *ctx,
|
||||||
PayloadContext *s,
|
PayloadContext *s,
|
||||||
|
Loading…
Reference in New Issue
Block a user