summaryrefslogtreecommitdiff
path: root/libavformat/rdt.c
Commit message (Collapse)AuthorAge
...
* Change function prototype from taking an AVStream to taking an index to theRonald S. Bultje2008-11-30
| | | | | | | | 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. Originally committed as revision 15962 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Document 'ic' variable. See "[PATCH] RDT/Realmedia patches #2" thread in ML.Ronald S. Bultje2008-11-23
| | | | Originally committed as revision 15916 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change type of prev_stream_id from uint32_t to int, since it has a max sizeRonald S. Bultje2008-11-17
| | | | | | of 16bits. See discussion in "[PATCH] RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15864 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r15853.Ronald S. Bultje2008-11-17
| | | | Originally committed as revision 15854 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Read optional components of the RDT packet header, such as extended setIDRonald S. Bultje2008-11-17
| | | | | | | and streamID and the length. of the packet in case of packet concatenation. Discussed in ML thread "[PATCH] RDT/Realmedia patches #2". Originally committed as revision 15853 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change header reading implementation to using get_bits() instead of directlyRonald S. Bultje2008-11-17
| | | | | | | | accessing the data array. This allows to easily read optionally available header bits without causing pains. See discussion in "[PATCH] RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15852 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefix all ff_rdt_parse_header() arguments with a p, preparing for localRonald S. Bultje2008-11-17
| | | | | | | variables to temporary hold the values. Discussed in ML thread "[PATCH] RDT/Realmedia patches #2". Originally committed as revision 15851 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memleak caused by the fact that url_open_buf() allocates a contextRonald S. Bultje2008-11-17
| | | | | | | | | | | when calling, but url_close_buf() doesn't free it. The better solution is to not allocate it at all, init it with init_put_byte() and then not have to close it at all. In the case where we do need to hold it around for longer than within the function context, we allocate it with av_alloc_put_byte() and free it with av_free() instead. Discussed in ML thread "[PATCH] fix small memleak in rdt.c". Originally committed as revision 15850 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ByteIOContext argument to public ff_rm_* functions so that we canRonald S. Bultje2008-11-17
| | | | | | | | specify the data source as function argument instead of in s->pb before calling the function. Discussed in ML thread "[PATCH] fix small memleak in rdt.c". Originally committed as revision 15849 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change status packet skipping to be more spec-compliant. See discussion inRonald S. Bultje2008-11-15
| | | | | | "[PATCH] RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15836 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r15833.Ronald S. Bultje2008-11-15
| | | | Originally committed as revision 15834 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add is_keyframe param to ff_rdt_parse_header(). See ML discussion inRonald S. Bultje2008-11-15
| | | | | | "[PATCH] RDT/Realmedia patches #2" thread. Originally committed as revision 15833 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename variables in ff_rdt_parse_header() and callers to match theRonald S. Bultje2008-11-15
| | | | | | | comment documentation in that function. See discussion on ML in the "[PATCH] RDT/Realmedia patches #2" thread. Originally committed as revision 15825 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add comment describing the RDT packet header. See discussion in "[PATCH]Ronald S. Bultje2008-11-14
| | | | | | RDT/Realmedia patches #2" thread on the mailinglist. Originally committed as revision 15823 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement RDTDemuxContext, which contains RDT-specific data (similar toRonald S. Bultje2008-10-04
| | | | | | | RTPDemuxContext for RTP) for these streams where the transport protocol is RDT (as served by Realmedia servers). Originally committed as revision 15544 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change function prototype of RTPDynamicPayloadHandler.parse_packet() toRonald S. Bultje2008-10-04
| | | | | | | | | not use RTPDemuxContext, but rather take a pointer to the payload context directly. This allows using payload handlers regardless over the transport over which they were sent, and prepares for the introduction of a future RDTDemuxContext. See discussion in "RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15541 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename RTP payload contexts to PayloadContext, suggested by Luca inRonald S. Bultje2008-10-04
| | | | | | "RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15540 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use parse_packet vfunc in RTPDynamicProtocolHandler instead of hardcodingRonald S. Bultje2008-10-01
| | | | | | the use of rdt_parse_packet(). See "RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15497 to svn://svn.ffmpeg.org/ffmpeg/trunk
* This patch refactors RDT packet header parsing so that it can be used inRonald S. Bultje2008-10-01
| | | | | | | | rtsp.c to detect the ID of the packet source also in case of TCP streams. This allows proper playback of RDT streams with multiple stream types, e.g. audio + video. Accepted by LucaB in "RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15496 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove access to rdt_data struct in functions called outside of theRonald S. Bultje2008-09-30
| | | | | | | | | DynamicProtocol* context. Doing so could lead to problems if we're accessing Real servers serving non-RDT data (or the other way around). Temporarily, this patch adds a _subscribe2() function which will soon be removed in one of the subsequent commits. OK'ed by Luca in "Realmedia patch" thread on ML. Originally committed as revision 15483 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement RDT-specific data parsing routines. After these changes, simpleRonald S. Bultje2008-09-07
| | | | | | | playback of RTSP/RDT streams should work. See discussion in "Realmedia patch" thread on ML. Originally committed as revision 15237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement a RDT-specific SET_PARAMETER command that subscribes to theRonald S. Bultje2008-09-07
| | | | | | | first stream in a RTSP/RDT session. See discussion in "Realmedia patch" thread on ML. Originally committed as revision 15235 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add dynamic payload handlers to rdt.c. These follow the same API as the onesRonald S. Bultje2008-09-07
| | | | | | | | | | | | | | | | | | in rtpdec.c, so that they can be shared and used in the same way in rtsp.c. The handlers, since they are specific for RDT, are registered in rdt.c and a new registration function is thus called from allformats.c. The dynamic payload handler also implements RDT-specific SDP-line parsing for OpaqueData and StartTime, which are specific for RDT and needed for proper playback. OpaqueData contains one or a list ("MLTI") of "MDPR" chunks that can be parsed by the rmdec.c function ff_rm_read_mdpr_codecdata(). To use this function, we create a new rdt_demuxer, which has the same private data as the rm_demuxer. The resulting AVFormatContext created with _open_stream() can thus be used to call functions in the RM demuxer. See discussion in "Realmedia patch" thread on ML. Originally committed as revision 15234 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement Realmedia/RTSP-compatible SETUP command. This includes calculationRonald S. Bultje2008-09-03
of the "RealChallenge2" response, which is some sort of authentication. See discussion in "Realmedia patch" thread on ffmpeg-devel. Originally committed as revision 15170 to svn://svn.ffmpeg.org/ffmpeg/trunk