summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement RMStream stream-specific private data object in the RM demuxer.Ronald S. Bultje2008-12-281-74/+101
| | | | | | | This allows multiple video or audio streams per .rm file. See mailinglist thread "[PATCH] rmdec.c: implement RMVideo/AudioStream". Originally committed as revision 16365 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use get_buffer() and url_fskip() for some loops of get_byte()s. See ↵Ronald S. Bultje2008-12-141-14/+6
| | | | | | | | discussion in ML thread "[PATCH] rmdec.c: use get_buffer and skip_bytes instead of loops of get_byte". Originally committed as revision 16139 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent something that looks weird.Ronald S. Bultje2008-12-141-1/+2
| | | | Originally committed as revision 16138 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split RMContext into RMDemux/MuxContext and make them private in rmdec/enc.c.Ronald S. Bultje2008-12-131-13/+34
| | | | | | | | Reason for this is that there are no shared entries in the demuxer/muxer context, making it a mystery as to why it was shared between the two. See "[PATCH] clean rmdemux/muxcontext" patch on mailinglist. Originally committed as revision 16111 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't access RMContext directly in rdt.c. Rather, use the return value ofRonald S. Bultje2008-12-131-1/+1
| | | | | | | | | ff_rm_parse_packet() to indicate whether more audio packets are available in the demuxer from the last RM frame, and save that in the RDT parsing context. See patch/discussion in "[PATCH] rdt.c: don't access RMContext" on ML. Originally committed as revision 16110 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indenting.Ronald S. Bultje2008-12-111-3/+3
| | | | Originally committed as revision 16056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ByteIOContext argument to public ff_rm_* functions so that we canRonald S. Bultje2008-11-171-17/+16
| | | | | | | | 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
* Check sub_packet_size against 0 to avoid div by zero later.Michael Niedermayer2008-10-291-0/+5
| | | | | | Fixes issue473 Originally committed as revision 15739 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add ok parts to the rm demuxer for SIPRO supportBenjamin Larsson2008-09-261-2/+4
| | | | Originally committed as revision 15426 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for RVTR fourCCVitor Sessak2008-09-231-1/+2
| | | | Originally committed as revision 15386 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-071-0/+7
| | | | | | | | | | | | | | | | | | 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
* Move av_set_pts_info() inside the mdpr_read_codecdata() call, so that it isRonald S. Bultje2008-09-031-1/+1
| | | | | | | shared between the RM demuxer and the RTSP/RDT parser; both use the same timebase. See discussion in "[PATCH] rmdec.c: move av_set_pts_info()" on ML. Originally committed as revision 15164 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use chunk-size in function calling mdpr_read_codecdata() rather than in theRonald S. Bultje2008-09-031-4/+3
| | | | | | | | | function itself. This way, old-style (.ra4) RTSP/RDT OpaqueData chunks can be parsed using this function as well (they don't have the size bits). See discussion on ML in "[PATCH] rmdec.c - small read_mdpr_codecdata() API modification". Originally committed as revision 15163 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused variable, fixes the warning:Diego Biurrun2008-06-231-1/+1
| | | | | | libavformat/rmdec.c:280: warning: unused variable 'i' Originally committed as revision 13909 to svn://svn.ffmpeg.org/ffmpeg/trunk
* factorize read_header failure freeing codeBaptiste Coudurier2008-06-201-9/+3
| | | | Originally committed as revision 13837 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.Stefano Sabatini2008-06-031-1/+1
| | | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste.it along with some spelling/consistency fixes for the long names by me Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check whether the memory allocation for extradata succeeded. Fixes issue 472.Panagiotis Issaris2008-06-011-0/+2
| | | | Originally committed as revision 13603 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-091-1/+2
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix seeking in rm.Michael Niedermayer2008-04-091-1/+1
| | | | Originally committed as revision 12779 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix forgotten braces from r11039Roberto Togni2008-01-171-2/+2
| | | | Originally committed as revision 11552 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some spaces to keep certain people's eyes from hurting.Diego Biurrun2008-01-161-1/+1
| | | | Originally committed as revision 11544 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Add another pair of parentheses to aid readability.Diego Biurrun2008-01-061-1/+1
| | | | Originally committed as revision 11437 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make three rm demuxer functions non static.Ronald S. Bultje2008-01-041-3/+3
| | | | | | | | Patch by Ronald S. Bultje rsbultje gmail com Original thread: [FFmpeg-devel] [PATCH] Realmedia / RTSP (RDT) Date: 12/28/2007 10:19 PM Originally committed as revision 11392 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Reindent.Diego Biurrun2008-01-021-1/+1
| | | | Originally committed as revision 11375 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge double-nested if into && condition.Ronald S. Bultje2008-01-021-3/+1
| | | | | | patch by Ronald S. Bultje, rsbultje gmail com Originally committed as revision 11374 to svn://svn.ffmpeg.org/ffmpeg/trunk
* TypoRoberto Togni2007-12-041-1/+1
| | | | Originally committed as revision 11165 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert r10892, it's wrong and no longer needed to prevent crashesRoberto Togni2007-12-021-1/+1
| | | | Originally committed as revision 11127 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use dynamically allocated ByteIOContext in AVFormatContextBjörn Axelsson2007-11-211-12/+12
| | | | | | | patch by: Björn Axelsson, bjorn d axelsson a intinor d se thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007 Originally committed as revision 11071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace realloc with free+malloc, the previous content of the buffer isRoberto Togni2007-11-191-1/+2
| | | | | | not needed Originally committed as revision 11065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* CosmeticsRoberto Togni2007-11-191-3/+3
| | | | Originally committed as revision 11056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* No need to update pos, it's not used after that lineRoberto Togni2007-11-191-1/+0
| | | | Originally committed as revision 11055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cleanup: remove ssizeRoberto Togni2007-11-181-4/+2
| | | | Originally committed as revision 11054 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for memory allocation failure of temp bufferRoberto Togni2007-11-181-1/+2
| | | | Originally committed as revision 11053 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize memory management to create an av_packet from multiple slices:Roberto Togni2007-11-181-6/+3
| | | | | | | | | - remove memmove to pack the data, instead copy only the used areas from the temp buffer in their final position - use the minimum possible size for the av_packet (relevant when some slices are missing) Originally committed as revision 11052 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1000l: Fix check for max slice numberRoberto Togni2007-11-151-1/+1
| | | | Originally committed as revision 11040 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move dnet-ac3 byte-swapping code close to audio packet read codeRoberto Togni2007-11-151-1/+2
| | | | | | | Fixed version of patch in [FFmpeg-devel] [PATCH 5/6] rmdec.c: move around rm_ac3_swap_bytes() Originally committed as revision 11039 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split ac3 byte swapping into a separate function.Ronald S. Bultje2007-11-081-10/+17
| | | | | | | | Patch by Ronald S. Bultje: rsbultje gmail com Original thread: Re: [FFmpeg-devel] [PATCH 4/6] rmdec.c: rm_ac3_swap_bytes() Date: 11/05/2007 09:27 PM Originally committed as revision 10964 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Isolate caching of audio frames in its own function.Ronald S. Bultje2007-11-081-11/+22
| | | | | | | | Patch by Ronald S. Bultje: rsbultje gmail com Original thread: Re: [FFmpeg-devel] [PATCH 3/6] rmdec.c: ff_rm_retrieve_cache() Date: 11/05/2007 09:25 PM Originally committed as revision 10963 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change a stream indexer.Ronald S. Bultje2007-11-081-1/+1
| | | | | | Patch by Ronald S. Bultje: rsbultje gmail com Originally committed as revision 10962 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split out the packet parsing from the main function body in rmdec.cRonald S. Bultje2007-11-081-82/+98
| | | | | | | | | into its own function Patch by Ronald S. Bultje: rsbultje gmail com Original thread: Re: [FFmpeg-devel] [PATCH 2/6] rmdec.c: ff_rm_parse_frame() Date: 11/05/2007 09:23 PM Originally committed as revision 10961 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change parse indexer.Ronald S. Bultje2007-11-081-3/+3
| | | | | | Patch by Ronald S. Bultje: rsbultje gmail com Originally committed as revision 10960 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change ff_rm_read_mdpr_codecdata to get back to old behavior.Benoit Fouet2007-11-081-3/+2
| | | | Originally committed as revision 10954 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split out the MDPR chunk reading into its own function.Ronald S. Bultje2007-11-061-58/+73
| | | | | | | | Patch by Ronald S. Bultje: rsbultje gmail com Original thread:[FFmpeg-devel] [PATCH 1/6] rmdec.c: ff_rm_read_mdpr_codecdata() Date: 11/05/2007 09:21 PM Originally committed as revision 10934 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Seek regression for RM demuxer fixKostya Shishkov2007-11-031-0/+3
| | | | Originally committed as revision 10907 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert get_num() to old behaviour in order to handleKostya Shishkov2007-11-011-1/+1
| | | | | | incorrect RMs generated by lavf muxer. Originally committed as revision 10892 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Demux full frames instead of sliced for RealVideo.Kostya Shishkov2007-10-211-25/+88
| | | | | | Some changes by Roberto Togni and blessed by him on IRC. Originally committed as revision 10823 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dnet audio needs avparser to work with the lavc ac3 decoder.Justin Ruggles2007-10-011-0/+1
| | | | | | | Fixes issue 121 Patch by Justin Ruggles Originally committed as revision 10634 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set correct length for last slice in frame subpacketKostya Shishkov2007-09-061-0/+2
| | | | Originally committed as revision 10420 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge get_str() and get_str8() functions.Ronald S. Bultje2007-07-281-18/+12
| | | | | | patch by Ronald S. Bultje, rsbultje gmail com Originally committed as revision 9818 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix get_str/get_str8() to also work if the target string is not long enough toRonald S. Bultje2007-07-281-6/+8
| | | | | | | | fit all data from the container string, and allow NULL as a string also to simply skip the string altogether. patch by Ronald S. Bultje, rsbultje gmail com Originally committed as revision 9817 to svn://svn.ffmpeg.org/ffmpeg/trunk