Commit 453588d2 authored by rbultje's avatar rbultje

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15962 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 49ff7e8c
...@@ -45,7 +45,7 @@ struct RDTDemuxContext { ...@@ -45,7 +45,7 @@ struct RDTDemuxContext {
}; };
RDTDemuxContext * RDTDemuxContext *
ff_rdt_parse_open(AVFormatContext *ic, AVStream *st, ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx,
void *priv_data, RTPDynamicProtocolHandler *handler) void *priv_data, RTPDynamicProtocolHandler *handler)
{ {
RDTDemuxContext *s = av_mallocz(sizeof(RDTDemuxContext)); RDTDemuxContext *s = av_mallocz(sizeof(RDTDemuxContext));
...@@ -53,7 +53,7 @@ ff_rdt_parse_open(AVFormatContext *ic, AVStream *st, ...@@ -53,7 +53,7 @@ ff_rdt_parse_open(AVFormatContext *ic, AVStream *st,
return NULL; return NULL;
s->ic = ic; s->ic = ic;
s->st = st; s->st = ic->streams[first_stream_of_set_idx];
s->prev_set_id = -1; s->prev_set_id = -1;
s->prev_timestamp = -1; s->prev_timestamp = -1;
s->parse_packet = handler->parse_packet; s->parse_packet = handler->parse_packet;
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
typedef struct RDTDemuxContext RDTDemuxContext; typedef struct RDTDemuxContext RDTDemuxContext;
RDTDemuxContext *ff_rdt_parse_open(AVFormatContext *ic, AVStream *st, RDTDemuxContext *ff_rdt_parse_open(AVFormatContext *ic,
int first_stream_of_set_idx,
void *priv_data, void *priv_data,
RTPDynamicProtocolHandler *handler); RTPDynamicProtocolHandler *handler);
void ff_rdt_parse_close(RDTDemuxContext *s); void ff_rdt_parse_close(RDTDemuxContext *s);
......
...@@ -901,7 +901,7 @@ rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st) ...@@ -901,7 +901,7 @@ rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
s->ctx_flags |= AVFMTCTX_NOHEADER; s->ctx_flags |= AVFMTCTX_NOHEADER;
if (rt->transport == RTSP_TRANSPORT_RDT) if (rt->transport == RTSP_TRANSPORT_RDT)
rtsp_st->tx_ctx = ff_rdt_parse_open(s, st, rtsp_st->tx_ctx = ff_rdt_parse_open(s, st->index,
rtsp_st->dynamic_protocol_context, rtsp_st->dynamic_protocol_context,
rtsp_st->dynamic_handler); rtsp_st->dynamic_handler);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment