summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* build: output-example: Add avutil to ELIBS in link commandDiego Biurrun2013-05-04
| | | | | | | | | output-example links against swscale, which depends on avutil. In standard configurations, by pure good luck, the libs before swscale pull in all of swscale's dependencies and linking succeeds. However, in some configurations like --disable-asm this is not the case and linking fails. Hardcode the dependency to avoid a more general Makefile refactoring.
* nut: K&R formatting cosmeticsLuca Barbato2013-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* wav: return meaningful errorsLuca Barbato2013-05-03
|
* silly typo fixesDiego Biurrun2013-05-03
|
* id3v2: check for end of file while unescaping tagsLuca Barbato2013-05-03
| | | | | | | Prevent a serious out of buffer bound write. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* matroskaenc: add an option to put the index at the start of the fileAnton Khirnov2013-05-03
|
* matroskaenc: cosmetics, reorder the #includesAnton Khirnov2013-05-03
|
* wav: K&R formatting cosmeticsLuca Barbato2013-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* id3v2: K&R formatting cosmeticsLuca Barbato2013-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avformat: Drop unnecessary ff_ name prefixes from static functionsDiego Biurrun2013-04-30
|
* oma: K&R formatting cosmeticsLuca Barbato2013-04-27
|
* hls, segment: fix splitting for audio-only streams.Anton Khirnov2013-04-27
| | | | CC:libav-stable@libav.org
* lavf: introduce AVFMT_TS_NEGATIVELuca Barbato2013-04-25
| | | | | | | | | | Most formats do not support negative timestamps, shift them to avoid unexpected behaviour and a number of bad crashes. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxfenc: Use correct printf format specifier for int64_tDiego Biurrun2013-04-22
| | | | libavformat/mxfenc.c:1861:9: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'int64_t' [-Wformat]
* riff: Factor out WAVEFORMATEX parsingLuca Barbato2013-04-21
| | | | | | Makes the code simpler to follow. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* riff: Add ACTRAC3+ guidPeter Ross2013-04-21
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* riff: Perform full lookup on WAVEFORMATEXTENSIBLE subformat guidPeter Ross2013-04-21
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* riff: Move guid structs and helper functions into riffPeter Ross2013-04-21
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* riff: check for eof if chunk size and code are 0Luca Barbato2013-04-21
| | | | | | | | | | Prevent an infinite loop. Inspired by a patch from Michael Niedermayer CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de>
* riff: K&R formatting cosmeticsLuca Barbato2013-04-21
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mp3dec: fallback to generic seeking when a TOC is not presentMichael Niedermayer2013-04-19
| | | | | | | Fixes seeking without a Xing/Info header. CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flvenc: do not mux more than one stream per typeRafaël Carré2013-04-16
| | | | | | FLV does not support multiple audio or video streams. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* img2enc: add an option for overwriting one file with subsequent imagesAnton Khirnov2013-04-11
| | | | Based on a patch by Michael Niedermayer <michaelni@gmx.at>.
* Move misplaced file author information where it belongsDiego Biurrun2013-04-11
|
* srtp: Include rtpdec.h for RTP_MAX_PACKET_LENGTHMartin Storsjö2013-04-09
| | | | | | | This was missed from 350ad50b - this fixes building the fate-srtp test. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Increase max rtp packet size to 8192Andrew Van Til2013-04-09
| | | | | | This fixes connecting to "Ceton InfiniTV4 PCIe & USB". Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Use RTP_MAX_PACKET_LENGTH instead of 1500Andrew Van Til2013-04-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* img2: Add j2k file extension for JPEG 2000Nicolas Bertrand2013-04-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* xmv: do not leak memory in the error paths in xmv_read_header()Anton Khirnov2013-04-04
| | | | CC: libav-stable@libav.org
* xmv: check audio track parameters validity.Anton Khirnov2013-04-04
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* id3v2: pad the APIC packets as required by lavc.Anton Khirnov2013-04-04
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: make sure stream probe data gets freed.Anton Khirnov2013-04-04
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* matroska: pass the lace size to the matroska_parse_rm_audioLuca Barbato2013-04-03
| | | | | | | | | | | Each lace must be independent according to the specification. Fix heap-buffer-overflow in matroska_parse_block for corrupted real media in mkv files. Stricter check than fc43c19a567aa945398dccb491d972c11ec2a065 CC: libav-stable@libav.org
* matroska: fix a corner case in ebml-lace parsingLuca Barbato2013-04-03
| | | | | | Make sure we notice when the lace_size[n] is a negative value. CC: libav-stable@libav.org
* matroska: Update the available size after lace parsingDale Curtis2013-04-03
| | | | | | | | | Fix heap-buffer-overflow in matroska_parse_block for corrupted real media in mkv files. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oma: Validate sample ratesLuca Barbato2013-03-31
| | | | | | | | The sample rate index is 3 bits even if currently index 5, 6 and 7 are not supported. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* flvdec: read audio sample size and channels metadataJustin Ruggles2013-03-28
| | | | | This is needed in order for the FLV demuxer not to detect a codec change when using the "flv_metadata" option.
* flvdec: use the correct audio codec id when parsing metadataJustin Ruggles2013-03-28
|
* win32: Use 64-bit fstat/lseek variants for MSVC as wellHendrik Leppkes2013-03-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* win32: Make ff_win32_open more robustReimar Döffinger2013-03-27
| | | | | | | | | | | - Make MultiByteToWideChar fail when it encounters invalid encoding. Without this, invalid characters might just be skipped - When MultiByteToWideChar fails, assume the file name is in CP_ACP and open it via normal open function, even when the file will be written - When malloc fails return error instead of crashing Signed-off-by: Martin Storsjö <martin@martin.st>
* win32: Allow other programs to open the same filesReimar Döffinger2013-03-27
| | | | | | | In order to match Linux behaviour better our Windows-specific open() replacement should disable Windows default file locking. Signed-off-by: Martin Storsjö <martin@martin.st>
* ape: use correct context for the bit table printed in debugKostya Shishkov2013-03-27
|
* lavc: Rename avpriv_mpv_find_start_code after moving out from mpegvideoMartin Storsjö2013-03-26
| | | | | | | Also move the declaration to internal.h, and add restrict qualifiers to the declaration (as in the implementation). Signed-off-by: Martin Storsjö <martin@martin.st>
* ape: 3.80-3.92 decoding supportKostya Shishkov2013-03-25
|
* rtmp: Pass the parameters to do_adobe_auth in the right orderMartin Storsjö2013-03-20
| | | | | | | | | | | do_adobe_auth takes the parameters in the order "opaque, challenge". Due to the way they are treated, this didn't matter in the tested setups though - if both are set, we only use one. In the tested setups (Wowza and Akamai) either one of them were null or they were both set to the same value, which is why this worked before. Signed-off-by: Martin Storsjö <martin@martin.st>
* Revert "asfenc: return error on negative timestamp"Anton Khirnov2013-03-19
| | | | | This reverts commit d1bec33b46091546c5b2e6815210e73f87abf413, it breaks FATE.
* iff: validate CMAP palette sizeKostya Shishkov2013-03-18
| | | | | | | | | Fixes CVE-2013-2495 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* asfenc: return error on negative timestampLuca Barbato2013-03-18
| | | | | | | According to the specification the timestamp is represented by a 32bit unsigned. CC: libav-stable@libav.org
* lavf: sanity check size in av_get/append_packet().Anton Khirnov2013-03-15
| | | | | | To avoid allocating ridiculous amounts of memory for corrupted files, read the input in chunks limited to filesize or an arbitrary large amount when that is not known (chosen to be 50M).
* flacdec: simplify bounds checking in flac_probe()Xi Wang2013-03-15
| | | | | | | | | | | Simplify `p->buf > p->buf + p->buf_size - 4' as `p->buf_size < 4'. Avoid a possible out-of-bounds pointer, which is undefined behavior in C. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>