summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
Commit message (Collapse)AuthorAge
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove return statements following infinite loops without breakMans Rullgard2011-07-03
| | | | | | | These statements cannot be reached and are thus not needed. This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move some conditionally used code below the appropriate #ifdef.Diego Biurrun2011-07-03
|
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-08
|
* Remove unused variablesMans Rullgard2011-06-02
|
* asfdec: add missing #include for av_bswap32()Mans Rullgard2011-05-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asfdec: fix possible overread on broken files.Uoti Urpala2011-05-17
|
* asfdec: do not fall back to binary/generic searchVladimir Pantelic2011-05-17
| | | | | | | | | | asf_read_seek() inside the asf demuxer already does the right thing, it tries the index and if that fails it uses binary search. If binary search is called from outside of asfdec.c it will fail because the asf code cannot clean up after itself. Therefore introduce AVFMT_NOBINSEARCH that prevents the seek code to fallback to binary search and AVFMT_NOGENSEARCH that prevents the seek code to fallback to generic search.
* asfdec: reindent after previous commit c7bd5edVladimir Pantelic2011-05-17
|
* asfdec: fallback to binary search internallyVladimir Pantelic2011-05-17
| | | | lavf will do that anyway in case seek by index fails
* asfdec: fix assert failure on invalid filesUoti Urpala2011-05-03
| | | | | | | | Add an extra size validity check in asf_read_frame_header(). Without this asf->packet_size_left may become negative, which triggers an assertion failure later. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: fix parsing of packets that overrun into padding.Ronald S. Bultje2011-05-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asf: remove commented out code in asf_read_seekVladimir Pantelic2011-04-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asfdec: Remove dead code from asf_read_close().Diego Biurrun2011-04-18
|
* make containers pass palette change in AVPacketKostya Shishkov2011-04-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* handle malloc failures in ff_get_wav_headerMax Horn2011-04-14
| | | | | | | | | | | ff_get_wav_header is reading data from a WAVE file and then uses it (without validation) to malloc a buffer. It then proceeded to read data into the buffer, without verifying that the allocation succeeded. To address this, change ff_get_wav_header to return an error if allocation failed, and adapted all calling code to handle that error. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avio: undeprecate av_url_read_fseek/fpause under nicer namesAnton Khirnov2011-04-12
| | | | It seems their replacements won't be ready anytime soon.
* asfdec: remove a forgotten declaration of nonexistent functionAnton Khirnov2011-04-08
|
* asfdec: also subtract preroll when reading simple index objectVladimir Pantelic2011-03-23
| | | | | | | This was missed when ASF was changed to return timestamps without preroll. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: make av_url_read_fseek/fpause internal.Anton Khirnov2011-03-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asfdec: subtract the preroll value and thus output 0 based timestampsVladimir Pantelic2011-03-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes senseAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_ferrorAnton Khirnov2011-03-15
| | | | | | AVIOContext.error should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_feofAnton Khirnov2011-03-07
| | | | | | 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-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: replace all uses of url_fskip with avio_seekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | | | 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-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: fix build for big endian targetsMans Rullgard2011-02-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asfdec: don't export empty metadataAnton Khirnov2011-02-13
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: split reading stream properties out of asf_read_header()Anton Khirnov2011-02-13
| | | | | | This contains a rename from gsize->size Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: deobfuscate reading video properties sizeAnton Khirnov2011-02-10
| | | | | | | This code will be later split out into a function which takes a 'size' argument, so I'm keeping the name 'sizeX' here. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: split asf_read_header()Anton Khirnov2011-02-10
| | | | | | | Only trivial splits are done here -- i.e. copy/paste + reindent + missing variable declarations. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: skip the stream bitrate listAnton Khirnov2011-02-10
| | | | | | Its contents aren't used for anything. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: use an ASFContext array for storing stream bitratesAnton Khirnov2011-02-09
| | | | | | This will be useful for splitting asf_read_header() Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: move DAR list to ASFContextAnton Khirnov2011-02-09
| | | | | | This will be useful for splitting asf_read_header() Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: remove some write-only values from the contextAnton Khirnov2011-02-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asf: split ASFContext into muxer and demuxer parts.Anton Khirnov2011-02-09
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asf: make ff_guidcmp inline and move it to asf.hAnton Khirnov2011-02-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace dprintf with av_dlogLuca Barbato2011-01-29
| | | | dprintf clashes with POSIX.1-2008
* asfdec: ensure that the whole tag is read.Anton Khirnov2011-01-28
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | 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.
* asfdec: remove some commented-out cruftAnton Khirnov2011-01-25
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* lavf: make a variant of ff_get_str16_nolen publicAnton Khirnov2011-01-25
| | | | | | It will be useful in mp3 demuxer and hopeful some other places. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* make guid utility function visibile to other modules (ff_guidcmp, ff_get_guid)Peter Ross2010-12-26
| | | | Originally committed as revision 26093 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change ASF demuxer to return incomplete last packets.Reimar Döffinger2010-12-18
| | | | | | | Whether the behaviour for streams using scrambling makes sense is unclear. Originally committed as revision 26053 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Return an error when get_buffer reads none or only partial data insteadReimar Döffinger2010-12-11
| | | | | | | | of returning packets with uninitialized data. Returning partial packets as for other demuxers is problematice due to packet scrambling and thus is not done. Originally committed as revision 25931 to svn://svn.ffmpeg.org/ffmpeg/trunk