History | View | Annotate | Download (30.7 KB)
avio: deprecate url_feof
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
avio: add avio_tell macro as a replacement for url_ftell
lavf: replace all uses of url_fskip with avio_seek
avio: avio_ prefix for url_fseek
avio: avio_ prefixes for get_* functions
In the name of consistency:get_byte -> avio_r8get_<type> -> avio_r<type>get_buffer -> avio_read
get_partial_buffer will be made private later
get_strz is left out becase I want to change it later to return...
avio: rename ByteIOContext to AVIOContext.
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.
Do not read the RM index when input is streamed (since it requires seekingforward and then back again) or AVFMT_FLAG_IGNIDX is set.
Originally committed as revision 23509 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move rm_codec_tags to rm.c so muxer/demuxer can share it.
Patch by Francesco Lavra <francescolavra interfree it>.
Originally committed as revision 23360 to svn://svn.ffmpeg.org/ffmpeg/trunk
We're using generic tag-to-ID functions, so specific codec_id assignmentsare no longer necessary. Patch by Zhou Zongyi <zhouzy AT os pku edu cn>.
Originally committed as revision 23312 to svn://svn.ffmpeg.org/ffmpeg/trunk
Mark av_metadata_set() as deprecated, and use av_metadata_set2()in its place.
av_metadata_set() is going to be dropped at the next major bump.
Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace all remaining occurrences of AVERROR_NOMEM withAVERROR.
AVERROR_NOMEM is deprecated and will be dropped at the next libavutilmajor bump.
Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
Another uninitialized value.
See http://tranquillity.ath.cx/clang/2010-03-30-1/report-e6KUTb.html#EndPath
Originally committed as revision 22783 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix uninitialized value in codepath.
See http://tranquillity.ath.cx/clang/2010-03-30-1/report-40QvF3.html#EndPath
Originally committed as revision 22782 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove dead initialization.
Originally committed as revision 22781 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 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
export rm_reorder_sipr_data() for future use by matroska demuxer
Originally committed as revision 22491 to svn://svn.ffmpeg.org/ffmpeg/trunk
export sipr_subpk_size for future use by matroska demuxer
Originally committed as revision 22490 to svn://svn.ffmpeg.org/ffmpeg/trunk
Print a warning when DATA chunk is encountered in the middle of chunk.From multirate RM patch by Ronald S. Bultje
Originally committed as revision 21392 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use the correct ByteIOContext in extradata parsing.Fixes half of issue1658.
Originally committed as revision 21095 to svn://svn.ffmpeg.org/ffmpeg/trunk
Get rid of useless casts.
Originally committed as revision 20831 to svn://svn.ffmpeg.org/ffmpeg/trunk
Print extradata in case of failure. I had this in my local tree and itmight be usefull for others ...
Originally committed as revision 20828 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use constant CODEC_ID_NONE instead of 0 where appropriate.
Originally committed as revision 20824 to svn://svn.ffmpeg.org/ffmpeg/trunk
Factor out extradata reading code.Borrowed from RM demuxer in FFmbc.
Originally committed as revision 20821 to svn://svn.ffmpeg.org/ffmpeg/trunk
RM audio stream version should be 16-bit followed by header size or reservedword, so treat it this way instead of extracting different parts from 32-bitvalue.
Originally committed as revision 20820 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make RM demuxer look more like proper demuxer by introducing codec tagsinstead of many strcmp() on always four-byte strings.Idea borrowed from RM demuxer in FFmbc by Baptiste Coudurier.
Originally committed as revision 20819 to svn://svn.ffmpeg.org/ffmpeg/trunk
Factor out variable declaration
Originally committed as revision 20818 to svn://svn.ffmpeg.org/ffmpeg/trunk
When resetting vst->pkt.data to NULL, also set vst->slices.This avoids a crash when the next slice is not a start slice and thuspkt->data is still NULL.This probably only happens with broken or unsupported files likehttp://samples.mplayerhq.hu/real/multirate/JustaSpa1937_64kb.rm...
Remove old_flags variable, which is a duplicate of the flags variable.
Originally committed as revision 19540 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...
Move declarations in sync() closer to where they are used.
Originally committed as revision 18556 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a @todo with a comment from Kostya so we don't forget to optimize that atsome point in the future.
Originally committed as revision 18142 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't allow to sync on packets of zero-size length, since these are nevervalid. See "[PATCH] rmdec.c: prevent zero-length packets" thread.
Originally committed as revision 18118 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move "- 12" statement up a bit. See "[PATCH] rmdec.c: prevent zero-lengthpackets" thread.
Originally committed as revision 18117 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add byte reordering for the SIPRO audio codec. See "rmdec.c: add SIPR codectry #2" thread. Patch originally by Vladimir Voroshilov.
Originally committed as revision 18062 to svn://svn.ffmpeg.org/ffmpeg/trunk
rmdec: fix crash at end of file
Originally committed as revision 18018 to svn://svn.ffmpeg.org/ffmpeg/trunk
More reindent, forgotten in previous commit.
Originally committed as revision 18014 to svn://svn.ffmpeg.org/ffmpeg/trunk
Parse index chunk so that seeking in modern .rm files becomes a lot faster.Has been tested against streamed / non-seekable input and passes makeseektest. See "[PATCH] rmdec.c: parse INDX chunk" thread on mailinglist.
Originally committed as revision 18013 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r18010.
Originally committed as revision 18011 to svn://svn.ffmpeg.org/ffmpeg/trunk
Mark the first output audio frame as keyframe (separate patch from previous,as requested by Kostya). See "[PATCH] rmdec.c: remove cache accessduplication".
Originally committed as revision 18010 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
Reindent after r18005.
Originally committed as revision 18007 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge code for packet reading in "old" (.ra, audio-only) Realmedia files andthe newer (.rm, audio/video) files. See "[PATCH] rmdec.c: merge old/newpacket reading code" thread on mailinglist.
Originally committed as revision 18005 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix index generation in the way that it was supposed to be used. See thediscussion in the ML thread "[PATCH] rmdec.c: merge old/new packet readingcode".
Over time, this code broke somewhat, e.g. seq was never actually writteninto (and was thus always 1, therefore the seq condition was always true),...
Correctly skip complete INDX chunks, i.e. read the 32-bit header correctlyand if the size is broken (20 bytes, header-only), calculate the expectedsize and skip the index entries anyway. See "[PATCH] rmdec.c: correctlyskip indexes" thread.
Originally committed as revision 17924 to svn://svn.ffmpeg.org/ffmpeg/trunk
Prevent (negative) overflow of rm->remaining_len. This evaluation really onlyhas two possible outcomes: either len and rm->remaining_len are the same, inwhich case we care about the outcome and it is zero, or rm->remaining_len iscurrently not in use and we don't care about the outcome. In that case, len...
Revert to r17908.
Originally committed as revision 17918 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace separate packet parsing for "old_format" .ra files by a call toff_rm_parse_packet(). See "[PATCH] Make RM demuxer behave better with -anoption" thread, which sort-of turned into an aggregate of unrelated rmdec.ccleanups.
Originally committed as revision 17909 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move frame discarding out of the ff_rm_parse_packet() loop, and respectrm->audio_pkt_cnt in case multiple packets should be read before the nextsyncpoint in the file, so that ffplay -an on a file containing AAC audioworks. See "[PATCH] Make RM demuxer behave better with -an option" thread...
remove now useless get_str16() from rmdec.c
Originally committed as revision 17397 to svn://svn.ffmpeg.org/ffmpeg/trunk
use new metadata API in rm (de)muxer
Originally committed as revision 17396 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a context to av_log() calls.
Originally committed as revision 17377 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use more descriptive format long_names.
Originally committed as revision 17184 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reformat rdt_demuxer AVCodec struct sanely.
Originally committed as revision 16969 to svn://svn.ffmpeg.org/ffmpeg/trunk
cosmetics: Remove pointless period after copyright statement non-sentences.
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix build: Add intreadwrite.h and bswap.h #includes where necessary.
Originally committed as revision 16556 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix a compiler warning:libavformat/rmdec.c:550: warning: assignment makes pointer from integer
Patch by Dominique Leuenberger (dominique-ffmpeg-devel A leuenberger D net)
Originally committed as revision 16489 to svn://svn.ffmpeg.org/ffmpeg/trunk
10l set AVPacket.size to the true size of the returned data instead ofthe (larger) allocated size. (prevents segfaults due to later failuresfrom 900MB-sized packets, yes fuzzed file not a valid one)
Originally committed as revision 16404 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix indention which was off by 1 space.
Originally committed as revision 16403 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace buffer by AVPacket and avoid a memcpy() for video when the numberof allocated slices matches the actual.Audio still does a copy (marked with FIXME in the code so this is not missed).
Originally committed as revision 16402 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge videobuf and audiobuf.
Originally committed as revision 16401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Simplify the top of rm_assemble_video_frame().
Originally committed as revision 16400 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a few error checks to rm_assemble_video_frame()
Originally committed as revision 16399 to svn://svn.ffmpeg.org/ffmpeg/trunk
All non zero returns of rm_assemble_video_frame() are errors, check thingsaccordingly.
Originally committed as revision 16398 to svn://svn.ffmpeg.org/ffmpeg/trunk
av_free() -> av_freep(), patch by Reimar Doffinger, see discussion in"rmdec.c: double free" thread on mailinglist.
Originally committed as revision 16379 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
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
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....
Implement RMStream stream-specific private data object in the RM demuxer.This allows multiple video or audio streams per .rm file. See mailinglistthread "[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 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.
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.Reason for this is that there are no shared entries in the demuxer/muxercontext, making it a mystery as to why it was shared between the two. See"[PATCH] clean rmdemux/muxcontext" patch on mailinglist....
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"...
Fix indenting.
Originally committed as revision 16056 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
Check sub_packet_size against 0 to avoid div by zero later.Fixes issue473
Originally committed as revision 15739 to svn://svn.ffmpeg.org/ffmpeg/trunk
add ok parts to the rm demuxer for SIPRO support
Originally committed as revision 15426 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add support for RVTR fourCC
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 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....
Move av_set_pts_info() inside the mdpr_read_codecdata() call, so that it isshared between the RM demuxer and the RTSP/RDT parser; both use the sametimebase. 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 thefunction itself. This way, old-style (.ra4) RTSP/RDT OpaqueData chunks canbe parsed using this function as well (they don't have the size bits). Seediscussion on ML in "[PATCH] rmdec.c - small read_mdpr_codecdata() API...
Remove unused variable, fixes the warning: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 code
Originally committed as revision 13837 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.patch by Stefano Sabatini, stefano.sabatini-lala poste.italong 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.
Originally committed as revision 13603 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use full path for #includes from another directory.
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix seeking in rm.
Originally committed as revision 12779 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix forgotten braces from r11039
Originally committed as revision 11552 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove some spaces to keep certain people's eyes from hurting.
Originally committed as revision 11544 to svn://svn.ffmpeg.org/ffmpeg/trunk
cosmetics: Add another pair of parentheses to aid readability.
Originally committed as revision 11437 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make three rm demuxer functions non static.Patch by Ronald S. Bultje rsbultje gmail comOriginal 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.
Originally committed as revision 11375 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge double-nested if into && condition.patch by Ronald S. Bultje, rsbultje gmail com
Originally committed as revision 11374 to svn://svn.ffmpeg.org/ffmpeg/trunk
Typo
Originally committed as revision 11165 to svn://svn.ffmpeg.org/ffmpeg/trunk
Revert r10892, it's wrong and no longer needed to prevent crashes
Originally committed as revision 11127 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use dynamically allocated ByteIOContext in AVFormatContext
patch by: Björn Axelsson, bjorn d axelsson a intinor d sethread: [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 isnot needed
Originally committed as revision 11065 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics
Originally committed as revision 11056 to svn://svn.ffmpeg.org/ffmpeg/trunk