summaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
Commit message (Collapse)AuthorAgeFilesLines
* avi: Improve non-interleaved detectionMichael Niedermayer2014-04-021-2/+68
| | | | | | | | | | | | | | | Additional fixes by Nigel Touati-Evans <nigel.touatievans@gmail.com>. Check the index for streams with a time drift of 2s or a buffer drift of 64MB. Bug-Id: 666 CC: libav-stable@libav.org Sample-Id: yet-another-broken-interleaved-avi.avi Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: add supported extension to avi and mov demuxersMarc-Antoine Arnaud2014-04-021-0/+1
|
* lavf: more correct printf format specifiersDiego Biurrun2014-03-111-2/+2
|
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-231-0/+2
|
* avidec: fix a memleak in the dv init code.Anton Khirnov2013-11-211-0/+1
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* avi: directly resync on DV in AVI read failureLuca Barbato2013-10-101-0/+2
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* avi: DV in AVI must be considered single streamLuca Barbato2013-10-101-3/+7
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* avi: properly fail if the dv demuxer is missingLuca Barbato2013-10-101-1/+2
| | | | CC: libav-stable@libav.org
* avidec: Make sure a packet is large enough before reading its dataMartin Storsjö2013-09-291-1/+2
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Reset the entry count and allocation size variables on av_reallocp ↵Martin Storsjö2013-09-261-2/+3
| | | | | | | | | | | | | | failures When av_reallocp fails, the associated variables that keep track of the number of elements in the array (and in some cases, the separate number of allocated elements) need to be reset. Not all of these might technically be needed, but it's better to reset them if in doubt, to make sure variables don't end up conflicting. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Use av_reallocp() where suitableAlexandra Khirnova2013-09-181-4/+5
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-021-0/+5
|
* avidec: Let the inner dv demuxer take care of discardingLuca Barbato2013-07-271-3/+6
| | | | CC: libav-stable@libav.org
* avidec: K&R formatting cosmeticsLuca Barbato2013-07-271-443/+536
| | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriateDiego Biurrun2013-05-041-1/+1
|
* avpacket: use AVBuffer to allow refcounting the packets.Anton Khirnov2013-03-081-0/+8
| | | | | | This will allow us to avoid copying the packets in many cases. This breaks ABI.
* avidec: use sensible error codes instead of -1Jindrich Makovicka2013-01-211-19/+22
| | | | | | | | Use AVERROR_INVALIDDATA on invalid inputs, and AVERROR_EOF when no more frames are available in an interleaved AVI. Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avformat: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-011-7/+16
|
* avformat: Remove non-compiling and/or silly commented-out printf/av_log ↵Diego Biurrun2012-10-011-4/+0
| | | | statements
* avidec: use actually read size instead of requested sizeAnton Khirnov2012-09-291-1/+1
| | | | Fixes CVE-2012-2788
* avidec: return 0, not packet size from read_packet().Anton Khirnov2012-09-291-1/+1
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-8/+8
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-301-1/+1
|
* avidec: make scale and rate unsigned.Anton Khirnov2012-06-041-2/+2
| | | | The specs say they are unsigned 32bit integers.
* lavf: deprecate av_read_packet().Anton Khirnov2012-03-201-3/+3
| | | | | | The caller can achieve the same effect (i.e. getting raw unparsed/mangled packets) with av_read_frame() and AVFMT_FLAG_NOPARSE | AVFMT_FLAG_NOFILLIN
* libavformat: Add an ff_ prefix to some lavf internal symbolsMartin Storsjö2012-02-151-1/+1
| | | | | | | | | | Prefix the functions/tables brktimegm, pcm_read_seek, dv_offset_reset, voc_get_packet, codec_movaudio_tags, codec_movvideo_tags. After this, lavf has no global symbols without the proper prefix. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-271-1/+1
|
* avidec: migrate last of lavf from FF_ER_* to AV_EF_*Dustin Brody2012-01-201-3/+4
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace all uses of av_close_input_file() with avformat_close_input().Anton Khirnov2011-12-121-1/+1
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-301-2/+3
| | | | It's supposed to be called only from (de)muxers.
* Generalize RIFF INFO tag support; support reading INFO tag in wavVictor Vasiliev2011-11-261-11/+8
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace all usage of strcasecmp/strncasecmpReimar Döffinger2011-11-061-2/+2
| | | | | | | | | | | All current usages of it are incompatible with localization. For example strcasecmp("i", "I") != 0 is possible, but would break many of the places where it is used. Instead use our own implementations that always treat the data as ASCII. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: use avpriv_ prefix for some dv functions.Anton Khirnov2011-10-201-3/+3
| | | | They are used in libavdevice.
* lavf: replace av_new_stream->avformat_new_stream part II.Anton Khirnov2011-10-191-1/+2
| | | | | | | | Manual replacements are done in this commit. In many cases, the id is some constant made up number (e.g. 0 for video and 1 for audio), which is then not used in the demuxer for anything. Those ids are removed.
* avidec: fix signed overflow in avi_sync()Mans Rullgard2011-10-101-2/+3
| | | | | | | | Keeping byte values read from the file as unsigned is consistent with how they are subsequently used and avoids an undefined left shift by 24 when bit 7 is set. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avidec: simplify size parameter in memset()Janne Grunau2011-10-101-1/+1
|
* lavf: add support for error_recognition, use it in avidec, and bump minor ↵Dustin Brody2011-08-121-2/+4
| | | | | | API version Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-171-8/+8
| | | | It's more readable and less prone to breakage.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-031-0/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avidec: simplify convoluted flow in avi_load_index()Mans Rullgard2011-07-031-11/+7
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avidec: infer absolute vs relative index from first packetAlex Converse2011-07-011-7/+23
|
* avidec: Factor out the sync fucntionality.Alex Converse2011-07-011-116/+128
|
* Deprecate av_open_input_* and remove their uses.Anton Khirnov2011-06-161-2/+6
| | | | Deprecate the last remaining member of AVFormatParameters.
* Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.Diego Biurrun2011-06-101-28/+15
|
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-081-7/+8
|
* Replace some printf instances in debug code by av_log.Diego Biurrun2011-06-071-2/+2
|
* Remove unused variablesMans Rullgard2011-06-021-2/+2
|
* read AVI palette from the end of extradataKostya Shishkov2011-04-241-4/+8
| | | | | | | | | | | | | | | | | | Official AVI specification says that stream header in case of video contains BITMAPINFO, which is equal to BITMAPINFOHEADER and optional palette. Currently lavf AVI demuxer thinks otherwise which produces garbage on codecs that have both palette and extradata (luckily, there are not so many such codecs). An example of such file is: http://samples.multimedia.cx/V-codecs/KMVC/baseball1.avi (IIRC, MSS1 or MSS2 also had such situation but they are still not supported by lavc). As a side note, passing palette in extradata as it's been done previously is not quite correct since proper _extra_ data is surplus bytes in BITMAPINFOHEADER, not including palette. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace more FFmpeg references by Libav.Diego Biurrun2011-04-171-1/+1
|
* make containers pass palette change in AVPacketKostya Shishkov2011-04-151-13/+11
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
OpenPOWER on IntegriCloud