summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
Commit message (Collapse)AuthorAge
...
* 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
* Ensure that packets returned from ASF demuxer are properly 0-padded.Reimar Döffinger2010-12-11
| | | | Originally committed as revision 25930 to svn://svn.ffmpeg.org/ffmpeg/trunk
* skip top-level objects to search for the simple index in ASF filesStefan Gehrer2010-12-03
| | | | Originally committed as revision 25863 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add ff_ prefix to metadata_conv()Anton Khirnov2010-10-16
| | | | | | patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25505 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export metadata in the generic format. Deprecate old conversion API.Anton Khirnov2010-10-15
| | | | | | patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25493 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with theStefano Sabatini2010-09-25
| | | | | | corresponding AVMEDIA_TYPE_* symbols. Originally committed as revision 25201 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation after r25158.Carl Eugen Hoyos2010-09-23
| | | | Originally committed as revision 25160 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix aspect ratio for files that have it stored inRichard Buteau2010-09-23
| | | | | | | | | ff_asf_extended_content_header. Fixes issue 690. Patch by Richard Buteau, rbuteau rgbnetworks com Originally committed as revision 25158 to svn://svn.ffmpeg.org/ffmpeg/trunk
* asfdec: 10l, fix the minimum asf video stream header sizeMartin Storsjö2010-07-20
| | | | | | This fixes the regression test breakage. Originally committed as revision 24354 to svn://svn.ffmpeg.org/ffmpeg/trunk
* asfdec: Don't read the video stream header if there isn't enough dataMartin Storsjö2010-07-20
| | | | Originally committed as revision 24352 to svn://svn.ffmpeg.org/ffmpeg/trunk
* asfdec: Handle asf_jfif_mediaMartin Storsjö2010-07-20
| | | | Originally committed as revision 24351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk