summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* 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>
* add support for Monkey's Audio versions from 3.93Kostya Shishkov2013-03-15
|
* mpegts: add support for stream_type 0x42, which is CAVSCan Wu2013-03-15
| | | | | | This allows demuxing and muxing of CAVS TS streams. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rsodec: Use avpriv_report_missing_feature() where appropriateDiego Biurrun2013-03-13
|
* avformat: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* matroskadec: request a read buffer for the wav headerLuca Barbato2013-03-12
| | | | | | Solve an infiniloop. CC: libav-stable@libav.org
* Add informative messages to av_log_ask_for_sample calls lacking themDiego Biurrun2013-03-12
|
* anm: Get rid of some very silly goto statementsDiego Biurrun2013-03-12
|
* lavf: remove disabled FF_API_R_FRAME_RATE cruftAnton Khirnov2013-03-11
|
* lavf: remove disabled FF_API_AV_GETTIME cruftAnton Khirnov2013-03-11
|
* lavf: remove disabled FF_API_INTERLEAVE_PACKET cruftAnton Khirnov2013-03-11
|
* lavf: remove disabled FF_API_READ_PACKET cruftAnton Khirnov2013-03-11
|
* lavf: remove disabled FF_API_APPLEHTTP_PROTO cruftAnton Khirnov2013-03-11
|
* lavf: remove disabled FF_API_CLOSE_INPUT_FILE cruftAnton Khirnov2013-03-11
|
* output-example: Update to use encode_video2 instead of the now dropped ↵Martin Storsjö2013-03-08
| | | | | | encode_video Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tty: set avg_frame_rate.Anton Khirnov2013-03-08
| | | | The container does not store any timestamps and is CFR-only.
* Replace remaining includes of audioconvert.h with channel_layout.hAnton Khirnov2013-03-08
|
* Add the bumps and APIchanges entries for reference counted buffers changes.Anton Khirnov2013-03-08
|
* avpacket: use AVBuffer to allow refcounting the packets.Anton Khirnov2013-03-08
| | | | | | This will allow us to avoid copying the packets in many cases. This breaks ABI.
* mp3dec: Fix VBR bit rate parsingAlexander Kojevnikov2013-03-08
| | | | | | | | | | | | When parsing the Xing/Info tag, don't set the bit rate if it's an Info tag. When parsing the stream, don't override the bit rate if it's already set, otherwise calculate the mean bit rate from parsed frames. This way, the bit rate will be set correctly both for CBR and VBR streams. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-07
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Initialize some variables to silence compiler warningsMartin Storsjö2013-03-02
| | | | | | | | The warnings are false positives, older gcc versions (such as 4.5) think the variables can be used uninitialized while they in practice can't, while newer (4.6) gets it right. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Check the return value of a mallocMartin Storsjö2013-03-02
| | | | | | | | | | The callers of this function can't report errors sanely. If this one malloc fails, don't write the extradata byte, make sure we try to malloc it the next time we're called instead, and make sure we still consume the input data byte. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Don't read the VP6 header byte when setting codec type based on metadataMartin Storsjö2013-03-02
| | | | | | | | | This header byte is only present when actually reading a VP6 frame, not when reading the codec type field in the metadata. This potential bug has been present since 5b54a90c. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Add a fate test for the noproxy pattern matchingMartin Storsjö2013-02-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Handle the environment variable no_proxy more properlyMartin Storsjö2013-02-27
| | | | | | | | | | | | | | | | | | | | The handling of the environment variable no_proxy, present since one of the initial commits (de6d9b6404), is inconsistent with how many other applications and libraries interpret this variable. Its bare presence does not indicate that the use of proxies should be skipped, but it is some sort of pattern for hosts that does not need using a proxy (e.g. for a local network). As investigated by Rudolf Polzer, different libraries handle this in different ways, some supporting IP address masks, some supporting arbitrary globbing using *, some just checking that the pattern matches the end of the hostname without regard for whether it actually is the right domain or a domain that ends in the same string. This simple logic should be pretty similar to the logic used by lynx and curl. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: use the format context for logging.Anton Khirnov2013-02-23
| | | | CC:libav-stable@libav.org
* asfdec: do not assume every AVStream has a corresponding ASFStreamAnton Khirnov2013-02-09
| | | | | | | This won't be true for ID3 attached picture. Also stop allocating now useless dummy ASFStreams for ASF native attached pictures.
* asfdec: support reading ID3v2 tags in ASF filesVladimir Pantelic2013-02-09
| | | | | | | Yes, these files do exist Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: also read Metadata Library ObjectVladimir Pantelic2013-02-09
| | | | | | | | In some ASF files this objects holds cover art and other tags. Compared to Metadata Object it can also hold GUIDs, but we ignore these for now. Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: read the full Metadata Object, not just aspect ratio informationVladimir Pantelic2013-02-09
| | | | | | | | Use the same get_tag()/get_value() as for the Extended Content Description but handle the 16 bit vs 32 bit difference for type 2 (BOOL) Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: silence a warningVladimir Pantelic2013-02-09
| | | | | Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asf: K&R formatting cosmeticsDiego Biurrun2013-02-06
|
* Use proper "" quotes for local header #includesDiego Biurrun2013-02-01
|