summaryrefslogtreecommitdiffstats
path: root/libavformat/rmdec.c
Commit message (Collapse)AuthorAgeFilesLines
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-271-1/+1
|
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-071-1/+1
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-301-1/+2
| | | | It's supposed to be called only from (de)muxers.
* rmdec: don't set codec timebase.Anton Khirnov2011-11-301-3/+2
| | | | | It's not supposed to be set outside of lavc. Set r_frame_rate instead.
* rdt: Set AVFMT_NOFILE on ff_rdt_demuxerMartin Storsjö2011-11-071-0/+1
| | | | | | | | | | This makes rdt work again, which has been broken since 603b8bc2a109978c8499b06d2556f1433306eca7. This commit made opening a demuxer without a file (or in this case, with a filename which can't be opened) fail, unless the demuxer actually declared AVFMT_NOFILE. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf,lavd: replace av_new_stream->avformat_new_stream part I.Anton Khirnov2011-10-191-2/+2
| | | | | Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
* rmdec: Reject invalid deinterleaving parametersLaurent Aimar2011-09-191-26/+31
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rmdec: use the deinterleaving mode and not the codec when creating audio ↵Laurent Aimar2011-09-191-1/+2
| | | | | | | | packets. It prevents crashes due to non initialized fields. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Use deinterleavers for demangling audio packets in RealMedia.Kostya Shishkov2011-08-271-12/+34
| | | | | | | | | | Unlike other containers RealMedia stores its audio packets in scrambled form, with interleaver ID preceeding audio codec ID. Currently deinterleaving decision is tied to the codec while it's possible to have non-default deinterleaver with audio codec (like Int0 deinterleaver instead of specific one for Sipro). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rmdec: parse FPS in RealMedia properlyKostya Shishkov2011-08-171-8/+8
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Use parsers for RealVideo 3/4 to determine correct PTSKostya Shishkov2011-08-171-0/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rmdec: correct DTS calculation in RealMedia container.Kostya Shishkov2011-08-171-4/+7
| | | | | | | | First, container stores only DTS and not PTS as it was believed. Second, multiple frames in a packet store timestamp instead of position after the frame length. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Remove redundant and dubious video codec detection by its extradataKostya Shishkov2011-08-151-10/+0
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-171-16/+12
| | | | It's more readable and less prone to breakage.
* rmdec: remove useless ap parameter from rm_read_header_old()Anton Khirnov2011-07-171-2/+2
|
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-081-1/+2
|
* Remove unused variablesMans Rullgard2011-06-021-2/+2
|
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-291-9/+7
|
* avio: introduce an AVIOContext.seekable fieldAnton Khirnov2011-04-031-1/+1
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes senseAnton Khirnov2011-03-161-11/+11
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_feofAnton Khirnov2011-03-071-3/+3
| | | | | | 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_ftellAnton Khirnov2011-03-041-12/+12
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: replace all uses of url_fskip with avio_seekAnton Khirnov2011-03-011-11/+11
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-011-4/+4
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-211-103/+103
| | | | | | | | | | | | | | In the name of consistency: get_byte -> avio_r8 get_<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 something useful. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-201-12/+12
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-261-2/+2
| | | | | This also lists the objects from those two libraries as internal (by adding the 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 seekingReimar Döffinger2010-06-061-1/+2
| | | | | | forward 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.Francesco Lavra2010-05-281-19/+4
| | | | | | 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 assignmentsZhou Zongyi2010-05-251-5/+0
| | | | | | are 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()Stefano Sabatini2010-04-251-1/+1
| | | | | | | | 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 withStefano Sabatini2010-04-031-1/+1
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Another uninitialized value.Ronald S. Bultje2010-04-021-0/+1
| | | | | | 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.Ronald S. Bultje2010-04-021-0/+1
| | | | | | 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.Ronald S. Bultje2010-04-021-2/+2
| | | | Originally committed as revision 22781 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-311-2/+2
| | | | | | 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, whichStefano Sabatini2010-03-301-9/+9
| | | | | | is 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 demuxerAurelien Jacobs2010-03-121-5/+3
| | | | Originally committed as revision 22491 to svn://svn.ffmpeg.org/ffmpeg/trunk
* export sipr_subpk_size for future use by matroska demuxerAurelien Jacobs2010-03-121-2/+2
| | | | 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.Ronald S. Bultje2010-01-231-0/+3
| | | | | | 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 issueRonald S. Bultje2010-01-081-3/+3
| | | | | | 1658. Originally committed as revision 21095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of useless casts.Michael Niedermayer2009-12-131-2/+2
| | | | 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 itMichael Niedermayer2009-12-131-1/+3
| | | | | | might 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.Carl Eugen Hoyos2009-12-131-1/+1
| | | | Originally committed as revision 20824 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factor out extradata reading code.Kostya Shishkov2009-12-131-17/+22
| | | | | | 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 reservedKostya Shishkov2009-12-131-9/+11
| | | | | | | word, so treat it this way instead of extracting different parts from 32-bit value. Originally committed as revision 20820 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make RM demuxer look more like proper demuxer by introducing codec tagsKostya Shishkov2009-12-131-13/+35
| | | | | | | instead 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 declarationKostya Shishkov2009-12-131-2/+1
| | | | Originally committed as revision 20818 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When resetting vst->pkt.data to NULL, also set vst->slices.Reimar Döffinger2009-09-131-0/+1
| | | | | | | | | | This avoids a crash when the next slice is not a start slice and thus pkt->data is still NULL. This probably only happens with broken or unsupported files like http://samples.mplayerhq.hu/real/multirate/JustaSpa1937_64kb.rm that need further fixes, but keeping vst state consistent is still a good idea. Originally committed as revision 19830 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud