summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* xan: Only read within the data that actually was initializedMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* xan: Use bytestream2 to limit reading to within the bufferMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* pcx: Consume the whole packet if giving up due to missing paletteMartin Storsjö2013-09-29
| | | | | | | | | Previously, we returned 0, meaning successful decoding but 0 bytes consumed, leading to an infinite loop. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* pngdec: Stop trying to decode once inflate returns Z_STREAM_ENDMartin Storsjö2013-09-29
| | | | | | | | | | If the input buffer contains more data after the deflate stream, the loop previously left running infinitely, with inflate returning Z_STREAM_END. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Make sure the read sample count is nonnegativeMartin Storsjö2013-09-29
| | | | | | | | | This avoids setting a negative number of frames, ending up with a negative average frame rate. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* bfi: Add some very basic sanity checks for input packet sizesMartin Storsjö2013-09-29
| | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* bfi: Avoid divisions by zeroMartin Storsjö2013-09-29
| | | | | | | | | If a zero-length video packet is to be returned, just return AVERROR(EAGAIN) and switch back to the audio stream. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* electronicarts: Add more sanity checking for the number of channelsMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* riffdec: Add sanity checks for the sample rateMartin Storsjö2013-09-29
| | | | | | | | This avoids a division by zero for G726. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mvi: Add sanity checking for the audio frame sizeMartin Storsjö2013-09-29
| | | | | | | | This avoids a division by zero. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* alac: Do bounds checking of lpc_order read from the bitstreamMartin Storsjö2013-09-29
| | | | | | | | | In lpc_prediction(), we write up to array element 'lpc_order' in an array allocated to hold 'max_samples_per_frame' elements. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* xwma: Avoid division by zeroMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avidec: Make sure a packet is large enough before reading its dataMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vqf: Make sure the bitrate is in the valid rangeMartin Storsjö2013-09-29
| | | | | | | | Even if the sample rate is valid, an invalid bitrate could pass the mode combination test below. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vqf: Make sure sample_rate is set to a valid valueMartin Storsjö2013-09-29
| | | | | | | | | | This avoids divisions by zero later (and possibly assertions in time base scaling), since an invalid rate_flag combined with an invalid bitrate below could pass the mode combination test. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: allow user-provided execute() callbacksAnton Khirnov2013-09-28
|
* avframe: note that linesize is not the usable data sizeAnton Khirnov2013-09-28
|
* lxf: check the nb_streams instead of relying on paddingLuca Barbato2013-09-27
| | | | | | | Remove the now unneeded stream pointer while at it. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lxf: remove deplanarization hackPaul B Mahol2013-09-27
| | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pcm: support 24-bit/32-bit little-endian planarPaul B Mahol2013-09-27
| | | | | | Used by LXF. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lxf: Support 16-channel filesCarl Eugen Hoyos2013-09-27
| | | | | | Reported, analyzed and tested by Gabriel Gerard. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lxf: Support version 1 filesReimar Döffinger2013-09-27
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavf: Reset the entry count and allocation size variables on av_reallocp ↵Martin Storsjö2013-09-26
| | | | | | | | | | | | | | 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>
* lavf: Allocate arrays with av_realloc if they will be realloced laterMartin Storsjö2013-09-26
| | | | | | | Pointers returned from av_malloc can't in general be passed to av_realloc. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_qt: Add an accidentally removed allocation return value checkMartin Storsjö2013-09-26
| | | | | | This check was mistakenly removed in 5626f994f. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Add support for listen modeMartin Storsjö2013-09-26
| | | | | | | | | Also add options for specifying a certificate and key, which can be used both when operating as client and as server. Partially based on a patch by Peter Ross. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Pass options through to the nested protocolMartin Storsjö2013-09-26
| | | | | | | | When passing a dict to the nested protocol, it will consume the used options from it, so a separate copy needs to be used when reopening the connection multiple times. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Add options for verifying the peer certificateMartin Storsjö2013-09-26
| | | | | | | | | | | | | | | | | | | | A file containing the trusted CA certificates needs to be supplied via the ca_file AVOption, unless the TLS library has got a system default file/database set up. This doesn't check the hostname of the peer certificate with openssl, which requires a non-trivial piece of code for manually matching the desired hostname to the string provided by the certificate, not provided as a library function. That is, with openssl, this only validates that the received certificate is signed with the right CA, but not that it is the actual server we think we're talking to. Verification is still disabled by default since we can't count on a proper CA database existing at all times. Signed-off-by: Martin Storsjö <martin@martin.st>
* g2meet: Respect cursor_stride properly everywhereKostya Shishkov2013-09-25
| | | | | | This fixes a regression with rgb cursors since b1e46988. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc doxy: document that avcodec_flush_buffers() invalidates decoded framesAnton Khirnov2013-09-24
|
* doc/filters: fix an option name in the unsharp docsAnton Khirnov2013-09-24
|
* h264: do not reinitialize the global cabac tables at each slice headerAnton Khirnov2013-09-24
|
* cabac: remove write-only h264_mps_state[]Anton Khirnov2013-09-24
|
* matroskadec: check av_strdup() when setting defaultsAnton Khirnov2013-09-24
|
* lavc: add support for interleaved chroma formats to libx264.Kieran Kunhya2013-09-24
| | | | | | Interleaved chroma is x264's native format Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pixdesc: fix NV20* descriptorsMichael Niedermayer2013-09-24
| | | | | | They were inconsistent (overlapping fields and wrong sizes) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_sei: check SEI sizeMichael Niedermayer2013-09-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: do not discard NAL_SEI when skipping framesRainer Hochecker2013-09-24
| | | | | | Setting AVDISCARD_NONREF (e.g. after flushing) resulted in 100% dropped frames. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: log extradata skip only for non-ignored NALsVittorio Giovara2013-09-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_sei: log unknown sei messagesVittorio Giovara2013-09-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: Initialize chroma_*_shift and codec_tag even if the size is 0Martin Storsjö2013-09-24
| | | | | | | | | | | | This fixes breakage in a few fate tests on certain setups (that for some reason didn't break on OS X) after the previous commit (8812a8057). Currently, some video streams are initialized in ff_MPV_common_init with width/height set at 0 and only changed to a proper video size with ff_MPV_common_frame_size_change later. The breakage was diagnosed by Anton Khirnov. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Enable -Qansi-alias for icl 14+Alex Smith2013-09-24
| | | | | | | Qansi-alias worked on 12.x, then caused miscompilation on 13.x, but now works again passing all FATE tests for icl version 14. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h263dec: Remove a hack that can cause infinite loopsMartin Storsjö2013-09-23
| | | | | | | | The actual usefulness of the hack is not known, and it does cause infinite loops with some broken input files. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* movenchint: Clear size and len if the realloc failedMartin Storsjö2013-09-22
| | | | | | | | Previously these were left in an inconsistent state. Pointed out by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Return a proper error code for invalid combinationsMartin Storsjö2013-09-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Check the error handling flags on slice/field header decode errorsMartin Storsjö2013-09-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* electronicarts: Check packet sizes before readingMartin Storsjö2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Avoid setting avg_frame_rate if delta_dts is negativeMartin Storsjö2013-09-22
| | | | | | | | | This avoids setting avg_frame_rate to invalid (negative) values. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Don't decode slices when the latest slice header failed to decodeMichael Niedermayer2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Make sure last_picture is initialized in vc1_decode_skip_blocksMartin Storsjö2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>