History | View | Annotate | Download (18.1 KB)
avio: move init_put_byte() to a new private header and rename it
init_put_byte should never be used outside of lavf, sincesizeof(AVIOContext) isn't part of public ABI.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
avio: rename ByteIOContext to AVIOContext.
rtsp/rdt: Assign the RTSPStream index to AVStream->id
This is used for mapping AVStreams back to their correspondingRTSPStream. Since d9c0510, the RTSPStream pointer isn't stored inAVStream->priv_data any longer, breaking this mapping from AVStreamsto RTSPStreams....
Remove final semicolon from some macros
This avoids double semicolons after macro expansion.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
This also lists the objects from those two libraries as internal (by addingthe ff_ prefix) so that they can then be hidden via linker scripts.
rtsp/rtpdec: Allow rtp_parse_packet to take ownership of the packet buffer
Do the same change for ff_rdt_parse_packet, too, to keep the interfacessimilar.
Originally committed as revision 25289 to svn://svn.ffmpeg.org/ffmpeg/trunk
get rid of MAX_STREAMS limit in RDT
Originally committed as revision 24751 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove angular brackets from Doxygen comments; Doxygen confuses them for HTML.
Originally committed as revision 23991 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove explicit filename from Doxygen @file commands.
Passing an explicit filename to this command is only necessary if thedocumentation in the @file block refers to a file different from theone the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove dead initialization.
Originally committed as revision 22780 to svn://svn.ffmpeg.org/ffmpeg/trunk
Define AVMediaType enum, and use it instead of enum CodecType, whichis deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a lowercase parameter to ff_data_to_hex
Originally committed as revision 22665 to svn://svn.ffmpeg.org/ffmpeg/trunk
handler can be NULL if we did not support this dynamic format (codec).Fixes issue 1658 (the crasher), although the format itself is obviouslystill unsupported.
Originally committed as revision 21078 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't use a pointer-to-flags/timestamp in ff_rm_parse_packet(); the functionused to return packet data, which might update the flags/timestamp to beused for the next packet data returned by the demuxer. However, that wasseparated out into a new function, and the flags/timestamp are thus never...
Use named initializers and use new/free_context() instead of extradata()for context allocators. Patch by Colin McQuillan m niloc googlemail com.
Originally committed as revision 19518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Rename bitstream.h to get_bits.h.
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r18010.
Originally committed as revision 18011 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove packet returning in ff_rm_parse_packet() if we're using the packetcache, since this can already be accessed through ff_rm_retrieve_cache().See "[PATCH] rmdec.c: remove cache access duplication" thread.
Originally committed as revision 18009 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't (ab)use PKT_FLAG_* in RTP code, since the two have virtually nothingin 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
Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h
Originally committed as revision 17016 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add "AVFormatContext *ctx" (that being the RTSP demuxer's) as first argumentto the parse_packet() function pointer in RTPDynamicProtocolHandlers. Thisallows these functions to peek back and retrieve values from the demuxer'scontext (or RTSPState). The ASF/RTP payload parser will use this to be able...
Use full internal pathname in doxygen @file directives.Otherwise doxygen complains about ambiguous filenames when files existunder the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge rtp_internal.h in rtp.h, and remove rtp_internal.h
Originally committed as revision 16817 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use "" instead of <> when #including non-system headers.
Originally committed as revision 16689 to svn://svn.ffmpeg.org/ffmpeg/trunk
Parse the OpaqueData field for every AVStream represented by this "set ofstreams" (a single RTSPStream / RDTDemuxContext can represent severalAVStreams, that's just how Real/RDT was designed...). This will fill inmost of the AVStream/AVCodecContext header fields, similar to reading a...
Parse the bitrate field in the ASMRuleBook ("AverageBandwidth") to fill inthe AVStream->AVCodecContext->bit_rate field, which is not in the MDPR block(the "OpaqueData" SDP field). This allows clients to choose streams basedon their bitrate, which is what most network-players base stream selection...
Parse the ASMRuleBook SDP line to dynamically create one new AVStream foreach "rule" described in the ASMRuleBook. Each rule represents a streamof identical content compared to other streams in the same rulebook, butwith a possibly different codec/bitrate/etc. See "[PATCH] rdt.c: ASM...
Fix double free which happens for playback of .rm files after r16365. See"rmdec.c: double free" discussion on mailinglist, patch with suggestionsfrom Reimar Doffinger.
Originally committed as revision 16378 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r16368.
Originally committed as revision 16369 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add audio_pkt_cnt return value to ff_rm_retrieve_cache(). See discussion in"[PATCH] oops I broke rdt.c" mailinglist thread.
Originally committed as revision 16368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change audio_pkt_cnt from an array into a single field, since only a singlemember of the array is ever used (compare to RMDemuxContext->audio_pkt_cnt).See "[PATCH] oops I broke rdt.c" mailinglist thread.
Originally committed as revision 16367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add RMStream object as function argument to public functions so that non-.rmAVStreams can be used to call these public rmdec.c functions as well, as isthe case for RDT/RTSP streams. See mailinglist discussion in "[PATCH] rdt.c:don't reuse the same AVStream in both RTSP and RM demuxer" thread....
Don't access RMContext directly in rdt.c. Rather, use the return value offf_rm_parse_packet() to indicate whether more audio packets are availablein the demuxer from the last RM frame, and save that in the RDT parsingcontext. See patch/discussion in "[PATCH] rdt.c: don't access RMContext"...
Change function prototype of the sdp_parse_a_line in DynamicProtocolHandler.This function is called in rtsp.c for each a= line in the SDP of the Describeresponse after m= RTSP stream descriptors. The function prototype used totake an AVStream argument. For RDT, however, every RTSPStream represents...
Implement rule-number parsing, the initial step in stream (and bitrate)selection. See discussion in ML thread "[PATCH] RDT/Realmedia patches #2".
Originally committed as revision 15966 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change RDTDemuxContext->st into an array of streams, which will make futurepatches adding stream-selection easier in code. See discussion in ML thread"[PATCH] RDT/Realmedia patches #2".
Originally committed as revision 15964 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change function prototype from taking an AVStream to taking an index to thestream itself, plus a name change to signify that there may be multipleAVStreams 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.
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 sizeof 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.
Originally committed as revision 15854 to svn://svn.ffmpeg.org/ffmpeg/trunk
Read optional components of the RDT packet header, such as extended setIDand 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 directlyaccessing the data array. This allows to easily read optionally availableheader bits without causing pains. See discussion in "[PATCH] RDT/Realmediapatches #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 localvariables 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 contextwhen calling, but url_close_buf() doesn't free it. The better solutionis to not allocate it at all, init it with init_put_byte() and thennot have to close it at all. In the case where we do need to hold it...
Add ByteIOContext argument to public ff_rm_* functions so that we canspecify the data source as function argument instead of in s->pb beforecalling the function. Discussed in ML thread "[PATCH] fix small memleakin 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 in"[PATCH] RDT/Realmedia patches #2" thread on ML.
Originally committed as revision 15836 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r15833.
Originally committed as revision 15834 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add is_keyframe param to ff_rdt_parse_header(). See ML discussion in"[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 thecomment 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]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 toRTPDemuxContext for RTP) for these streams where the transport protocolis 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() tonot use RTPDemuxContext, but rather take a pointer to the payload contextdirectly. This allows using payload handlers regardless over the transportover which they were sent, and prepares for the introduction of a future...
Rename RTP payload contexts to PayloadContext, suggested by Luca in"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 hardcodingthe 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 inrtsp.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....
Remove access to rdt_data struct in functions called outside of theDynamicProtocol* context. Doing so could lead to problems if we're accessingReal servers serving non-RDT data (or the other way around). Temporarily,this patch adds a _subscribe2() function which will soon be removed in one...
Implement RDT-specific data parsing routines. After these changes, simpleplayback 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 thefirst 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 onesin 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 anda new registration function is thus called from allformats.c....
Implement Realmedia/RTSP-compatible SETUP command. This includes calculationof the "RealChallenge2" response, which is some sort of authentication. Seediscussion in "Realmedia patch" thread on ffmpeg-devel.
Originally committed as revision 15170 to svn://svn.ffmpeg.org/ffmpeg/trunk