Mercurial > libavformat.hg
comparison rdt.c @ 4050:7bc64c735f8b libavformat
Change function prototype from taking an AVStream to taking an index to the
stream itself, plus a name change to signify that there may be multiple
AVStreams per RDT set. See discussion in "[PATCH] RDT/Realmedia patches #2"
thread on ML.
author | rbultje |
---|---|
date | Sun, 30 Nov 2008 20:39:16 +0000 |
parents | e35f52a277d7 |
children | 302cc68489e4 |
comparison
equal
deleted
inserted
replaced
4049:116a6910592c | 4050:7bc64c735f8b |
---|---|
43 uint32_t prev_timestamp; | 43 uint32_t prev_timestamp; |
44 int prev_set_id; | 44 int prev_set_id; |
45 }; | 45 }; |
46 | 46 |
47 RDTDemuxContext * | 47 RDTDemuxContext * |
48 ff_rdt_parse_open(AVFormatContext *ic, AVStream *st, | 48 ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx, |
49 void *priv_data, RTPDynamicProtocolHandler *handler) | 49 void *priv_data, RTPDynamicProtocolHandler *handler) |
50 { | 50 { |
51 RDTDemuxContext *s = av_mallocz(sizeof(RDTDemuxContext)); | 51 RDTDemuxContext *s = av_mallocz(sizeof(RDTDemuxContext)); |
52 if (!s) | 52 if (!s) |
53 return NULL; | 53 return NULL; |
54 | 54 |
55 s->ic = ic; | 55 s->ic = ic; |
56 s->st = st; | 56 s->st = ic->streams[first_stream_of_set_idx]; |
57 s->prev_set_id = -1; | 57 s->prev_set_id = -1; |
58 s->prev_timestamp = -1; | 58 s->prev_timestamp = -1; |
59 s->parse_packet = handler->parse_packet; | 59 s->parse_packet = handler->parse_packet; |
60 s->dynamic_protocol_context = priv_data; | 60 s->dynamic_protocol_context = priv_data; |
61 | 61 |