summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* lavc: add GBRAP to avcodec_align_dimensions2Paul B Mahol2015-01-141-0/+1
|
* imgutils: create misc functions for dealing with buffersStefano Sabatini2015-01-142-88/+13
| | | | | | | | | | | | | | | | | Move the lavc/imgconvert functions and rename them as follows: avpicture_get_size -> av_image_get_buffer_size() avpicture_fill -> av_image_fill_arrays() avpicture_layout -> av_image_copy_to_buffer() The new functions have an align parameter, which allows to define the linesize alignment assumed in the buffer (which is set or read). The names of the functions are consistent with the lavu/samples API (av_samples_get_buffer_size(), av_samples_fill_arrays()). A redundant check has been dropped from av_image_fill_arrays(). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* png: improve signature checkVittorio Giovara2015-01-141-3/+4
| | | | | Return proper error code, print an error message and add missing parentheses.
* mpeg4audio: check the init_get_bits() return valueAnton Khirnov2015-01-091-2/+4
| | | | | | Fixes possible invalid reads. CC:libav-stable@libav.org
* libfdk-aacdec: Make sure decoding doesn't add any extra delay in the latest ↵Martin Storsjö2015-01-081-0/+11
| | | | | | | | | | | version of fdk-aac The latest version added support for a new option for enabling a signal level limiter, which adds some extra delay. In fdk-aac, this is enabled by default, but disable it by default here since we'd rather have zero-delay decoding. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopenh264enc: Fix a typo and some nitpicksMartin Storsjö2015-01-081-2/+2
| | | | | | Also move the .long_name entry to below the .name entry. Signed-off-by: Martin Storsjö <martin@martin.st>
* xsub: Support DXSA subtitlesAlexandre Colucci2015-01-071-4/+11
| | | | | | | | These have a DXSA tag and contain alpha in addition to color values for palette. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libavcodec: Add an OpenH264 encoder wrapperMartin Storsjö2015-01-064-1/+231
| | | | | | | | | | | | | | | | | | | | Compared to existing, common opensource H264 encoders, this can be useful since it has got a different license (BSD instead of GPL). Performance- and qualitywise it is comparable to x264 in ultrafast mode. Hooking it up as an encoder in libavcodec also simplifies comparing it against other common encoders. This requires OpenH264 1.3 or newer. Since the OpenH264 API and ABI changes frequently, only releases are supported. To take advantage of the OpenH264 patent offer, the OpenH264 library must not be redistributed, but downloaded at runtime at the end-user's system. Signed-off-by: Martin Storsjö <martin@martin.st>
* msmpeg4: check memory allocations and propagate errorsVittorio Giovara2015-01-063-7/+17
| | | | Bug-Id: CID 1257781
* ulti: invert the order of parameters of ulti_decode_frame()Vittorio Giovara2015-01-061-4/+3
| | | | | | | | | This is the order that the caller uses in the rest of the file. Variables are modified to reflect the order above too and their initialization is merged with their declarationt. No behavioral change. Bug-Id: CID 732286
* vda: error out if decoded CVPixelBuffer is emptyStefano Pigozzi2015-01-051-11/+12
| | | | | | | | On some video samples, VDA silently fails to decode frames and returns kVDADecoderNoErr. Error out in these cases to avoid producing AVFrames with empty planes. Signed-off-by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
* ffv1: const correctness for encode_rgb_frame()Diego Biurrun2015-01-051-9/+9
| | | | libavcodec/ffv1enc.c:922:53: warning: passing argument 5 of ‘encode_rgb_frame’ discards ‘const’ qualifier from pointer target type
* ffv1: Drop unnecessary casts and const qualifiers to match function signaturesDiego Biurrun2015-01-051-4/+4
| | | | libavcodec/ffv1dec.c:898:36: warning: cast discards ‘const’ qualifier from pointer target type
* h264: restore a block mistakenly removed in e10fd08aAnton Khirnov2014-12-271-0/+2
| | | | | CC: libav-stable@libav.org Bug-ID: 781
* vdpau: add support for the H.264 High 4:4:4 Predictive profileRémi Denis-Courmont2014-12-252-6/+24
| | | | | Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau: add support for 4:2:2 and 4:4:4 chroma samplingRémi Denis-Courmont2014-12-252-4/+8
| | | | | Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau: add helper for surface chroma type and sizeRémi Denis-Courmont2014-12-253-5/+68
| | | | | | | | | | | | | | | | | | | | | Since the VDPAU pixel format does not distinguish between different VDPAU video surface chroma types, we need another way to pass this data to the application. Originally VDPAU in libavcodec only supported decoding to 8-bits YUV with 4:2:0 chroma sampling. Correspondingly, applications assumed that libavcodec expected VDP_CHROMA_TYPE_420 video surfaces for output. However some of the new HEVC profiles proposed for addition to VDPAU would require different depth and/or sampling: http://lists.freedesktop.org/archives/vdpau/2014-July/000167.html ...as would lossless AVC profiles: http://lists.freedesktop.org/archives/vdpau/2014-November/000241.html To preserve backward binary compatibility with existing applications, a new av_vdpau_bind_context() flag is introduced in a further change. Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavcodec: add AV_HWACCEL_ALLOW_HIGH_DEPTH flagRémi Denis-Courmont2014-12-252-1/+7
| | | | | | | | This can be used by the application to signal its ability to cope with video surface of types other than 8-bits YUV 4:2:0. Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: add AVCodecContext.sw_pix_fmtRémi Denis-Courmont2014-12-253-5/+19
| | | | | | | | This carries the pixel format that would be used if it were not for hardware acceleration. This is equal to AVCodecContext.pix_fmt if hardware acceleration is not in use. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: factor hwaccel pixel formats listRémi Denis-Courmont2014-12-251-54/+35
| | | | | | | This is to avoid proliferation of similar tables in following changes. Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegts: add support for OpusKieran Kunhya2014-12-203-21/+138
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* on2avc: check number of channelsMichael Niedermayer2014-12-191-0/+4
| | | | | | | | | Fixes invalid memory access. CC: libav-stable@libav.org Bug-ID: CVE-2014-8549 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* smc: fix the bounds checkMichael Niedermayer2014-12-191-1/+1
| | | | | | | | | | Fixes invalid writes when there are more blocks in a run than total remaining blocks. CC: libav-stable@libav.org Bug-ID: CVE-2014-8548 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* gifdec: refactor interleave end handlingMichael Niedermayer2014-12-191-10/+5
| | | | | | | | | Fixes invalid writes with very small image heights. CC: libav-stable@libav.org Bug-ID: CVE-2014-8547 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mmvideo: check frame dimensionsAnton Khirnov2014-12-191-0/+7
| | | | | | | | | The frame size must be set by the caller and each dimension must be a multiple of 2. CC: libav-stable@libav.org Bug-ID: CVE-2014-8543 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* jvdec: check frame dimensionsAnton Khirnov2014-12-191-0/+7
| | | | | | | | | The frame size must be set by the caller and each dimension must be a multiple of 8. CC: libav-stable@libav.org Bug-ID: CVE-2014-8542 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* mjpegdec: check for pixel format changesAnton Khirnov2014-12-191-17/+23
| | | | | | | | | | Fixes possible invalid memory access. Based on code by Michael Niedermayer <michaelni@gmx.at> CC: libav-stable@libav.org Bug-ID: CVE-2014-8541 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* imgconvert: check memory allocations and propagate errorsVittorio Giovara2014-12-181-5/+11
|
* wma: check memory allocations and propagate errorsVittorio Giovara2014-12-181-9/+19
|
* takdec: check av_samples_get_buffer_size() return valueVittorio Giovara2014-12-181-0/+2
| | | | | CC: libav-stable@libav.org Bug-Id: CID 747734
* aacps: invert the order of parameters of ipdopd_reset()Vittorio Giovara2014-12-181-1/+1
| | | | | | | | This is the order that the caller uses in the rest of the file. The same operation is applied to both parameters, so this change is only done for consistency, it doesn't change the actual behaviour. Bug-Id: CID 732285 / CID 732286
* assdec: check the right variableVittorio Giovara2014-12-181-1/+1
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1257815
* aacenc: correctly check returned valueVittorio Giovara2014-12-181-3/+4
| | | | CC: libav-stable@libav.org
* lcl: return an appropriate error codeVittorio Giovara2014-12-181-1/+1
|
* a64multi: check elbg return valuesVittorio Giovara2014-12-181-2/+8
|
* roqvideo: check memory allocations and propagate errorsVittorio Giovara2014-12-181-23/+62
|
* elbg: check memory allocations and propagate errorsVittorio Giovara2014-12-182-16/+33
|
* theora: support different visible and coded frame sizeVittorio Giovara2014-12-181-16/+45
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* DPX parserPaul B Mahol2014-12-184-2/+120
| | | | | | Additional improvements and fixes by Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: support encoding and decoding 64bit imagesCarl Eugen Hoyos2014-12-183-4/+10
|
* h261dec: Fix context initialization sequenceMichael Niedermayer2014-12-181-2/+1
| | | | | | | | | | ff_mpv_common_init sets s->context_initialized. This fixes decoding of h261 in the cases where the demuxer hasn't already set the frame size. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* h261enc: Disallow sliced encodingMartin Storsjö2014-12-181-0/+1
| | | | | | | | | | | This avoids trying to do sliced encoding, even if a slice/packet size is requested (via the -ps option or the rtp_payload_size field), since the encoder currently doesn't support it (or at least our decoder can't decode it, even if the h261_encode_gob_header function is hooked up to be called from the slicing part in mpegvideo_enc.c). Signed-off-by: Martin Storsjö <martin@martin.st>
* tiff: set the correct return value when check_size() failsVittorio Giovara2014-12-151-1/+3
| | | | Only one instance affected and solved as other occurences.
* tiff: Check the check_size() return value and forward itLuca Barbato2014-12-151-23/+40
| | | | | | | | | | Also use the same type for add_entry and check_size. Bug-Id: CID 700699 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Vittorio Giovara <vittorio.giovarao@gmail.com>
* prores: Evaluate all the quantizersLuca Barbato2014-12-151-3/+2
| | | | | | | | | Prevent an uninitialized data access. CC: libav-stable@libav.org Bug-Id: CID 703824 / CID 703825 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegvideo: move REBASE_PICTURE where it is usedVittorio Giovara2014-12-153-6/+6
| | | | Drop an unused #undef from h264 decoder.
* mpegvideo: remove unused function declarationVittorio Giovara2014-12-151-1/+0
|
* hevc: always clip luma_log2_weight_denomVittorio Giovara2014-12-151-1/+1
| | | | | | | Its value shall be between 0 and 7 according to the specifications. CC: libav-stable@libav.org Bug-Id: CID 1257502
* vaapi: wrap codec specific functions in appropiate #ifsThiago Santos2014-12-141-0/+4
| | | | | | | | | | Fix linking when only a subset of vaapi decoders is enabled. Bug-Id: 760 CC: libav-stable@libav.org Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* svq1dec: Unbreak the scratch buffer allocationMichael Niedermayer2014-12-141-2/+3
| | | | | | | | | | | | | | | The input packets are always assumed to be padded and the av_fast_ family of function takes a pointer to a pointer. Thanks to Nicolas Dufresne <nicolas.dufresne@collabora.com> for a similar patch. Introduced in 7b588bb691644e1b3c168b99accf74248a24e3cf. Bug-Id: 766 CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
OpenPOWER on IntegriCloud