summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* wmall: use AVFrame API properlyHendrik Leppkes2013-08-11
| | | | | | This fixes a bug with non-refcounted callers resulting in invalid memory access. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: Add refcounted api to AVPacketLuca Barbato2013-08-10
| | | | Provide a clean way to manipulate packets.
* h264: check one context_init() allocationVittorio Giovara2013-08-10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: use explicit variable names for *_field_flagVittorio Giovara2013-08-10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: return meaningful valuesVittorio Giovara2013-08-10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavutil: Make avpriv_open a library-internal function on msvcrtMartin Storsjö2013-08-10
| | | | | | | | | | | | | | | Add one copy of the function into each of the libraries, similarly to what we do for log2_tab. When using static libs, only one copy of the file_open.o object file gets included, while when using shared libraries, each of them get a copy of its own. This fixes DLL builds with a statically linked C runtime, where each DLL effectively has got its own instance of the C runtime, where file descriptors can't be shared across runtimes. On systems not using msvcrt, the function is not duplicated. Signed-off-by: Martin Storsjö <martin@martin.st>
* arm: Add assembly version of h264_find_start_code_candidateBen Avison2013-08-08
| | | | | | | | | | | | | | Before After Mean StdDev Mean StdDev Change This function 508.8 23.4 185.4 9.0 +174.4% Overall 3068.5 31.7 2752.1 29.4 +11.5% In combination with the preceding patch: Before After Mean StdDev Mean StdDev Change Overall 2925.6 26.2 2752.1 29.4 +6.3% Signed-off-by: Martin Storsjö <martin@martin.st>
* h264dsp: Factorize code into a new function, h264_find_start_code_candidateBen Avison2013-08-08
| | | | | | | | | | | | | | | This performs the start code search which was previously part of h264_find_frame_end() - the most CPU intensive part of the function. By itself, this results in a performance regression: Before After Mean StdDev Mean StdDev Change Overall time 2925.6 26.2 3068.5 31.7 -4.7% but this can more than be made up for by platform-optimised implementations of the function. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264_parser: Initialize the h264dsp context in the parser as wellBen Avison2013-08-08
| | | | | | | | | | | | | | | Each AVStream struct for an H.264 elementary stream actually has two copies of the H264DSPContext struct (and in fact all the other members of H264Context as well): ((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp ((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp but only the first of these was actually being initialised. This prevented the addition of platform-specific implementations of parser-related functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* Voxware MetaSound decoderKostya Shishkov2013-08-08
|
* libavcodec: use avpriv_open()Rémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo_enc: drop outdated copy_picture_attributes() in favour of a modern ↵Vittorio Giovara2013-08-07
| | | | | | av_frame_copy_props() Signed-off-by: Anton Khirnov <anton@khirnov.net>
* deprecate AV_CODEC_ID_VOXWARE and introduce AV_CODEC_ID_METASOUND insteadKostya Shishkov2013-08-07
| | | | | Voxware is the name of company, it has produced several audio codecs e.g. MetaVoice family and MetaSound.
* pcm_bluray: Return AVERROR_INVALIDDATA instead of -1 on header errorsChristian Schmidt2013-08-06
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avcodec/options: Drop deprecation warning suppression macrosDiego Biurrun2013-08-06
| | | | | | The options table is used in tools built by the host compiler and the deprecation macros pull in bits that are not safe to use if host and target compiler differ.
* twinvq: Split VQF-specific part from common TwinVQ decoder coreKostya Shishkov2013-08-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* twinvq: Prefix enums and defines shared with VoxWare MetaSoundDiego Biurrun2013-08-05
|
* twinvq: move all bitstream reading into single placeKostya Shishkov2013-08-05
| | | | | | | | This is required for the future addition of VoxWare MetaSound decoder, for its functions are mostly the same but bitstream reader is completely different and bitstream format is slightly different too. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegts: Remove one 64-bit integer modulus operation per packetBen Avison2013-08-05
| | | | | | | | | | | | | The common case of the pointer having increased by one packet (which results in no change to the modulus) can be detected with a 64-bit subtraction, which is far cheaper than a division on many platforms. Before After Mean StdDev Mean StdDev Change Divisions 248.3 8.8 51.5 7.4 +381.7% Overall 2773.2 25.6 2372.5 43.1 +16.9% Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: check mb_height validity.Luca Barbato2013-08-05
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vc1: check the source buffer in vc1_mc functionsLuca Barbato2013-08-05
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* bink: Bound check the quantization matrix.Luca Barbato2013-08-05
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* libx264: add shortcut for the bluray compatibility optionLuca Barbato2013-08-05
| | | | As for intra-refresh it is just a commodity.
* vdpau: deprecate bitstream buffers within the hardware contextRémi Denis-Courmont2013-08-05
| | | | | | | | The bitstream buffers are now private and freed by libavcodec. For backward compatibility, the hold bitstream buffer pointer is left NULL (applications were supposed to av_freep() it). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau: store picture data in picture's rather than codec's contextRémi Denis-Courmont2013-08-05
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau: deprecate VDPAU codec capabilityRémi Denis-Courmont2013-08-05
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau: remove old-style decodersRémi Denis-Courmont2013-08-05
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aac: Forward errors properly in aac_decode_frame_intLuca Barbato2013-08-04
| | | | Incidentally also remove a warning.
* aac: Check init_get_bits return valueLuca Barbato2013-08-04
| | | | | | Some code paths can call it with invalid length. CC: libav-stable@libav.org
* avcodec: Add output_picture_number to AVCodecParserContextYusuke Nakamura2013-08-02
| | | | | | Set output_picture_number in H.264 parser. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-02
|
* Give less generic names to global library option arraysDiego Biurrun2013-08-02
|
* h264_sei: Return meaningful valuesVittorio Giovara2013-08-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264_sei: K&R formatting cosmeticsVittorio Giovara2013-08-01
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264_sei: Remove pointless old commentDiego Biurrun2013-08-01
|
* twinvq: Add proper twinvq prefixes to identifiersDiego Biurrun2013-08-01
|
* Replace remaining obsolete PIX_FMT names with AV_PIX_FMT equivalentsDiego Biurrun2013-07-29
|
* huffyuvenc: BGRA supportMichael Niedermayer2013-07-29
| | | | | | Bug-Id: 452 Signed-off-by: Diego Biurrun <diego@biurrun.de>
* xl: Make sure the width is validLuca Barbato2013-07-28
| | | | | | And undo the wrong commit f1cb490d6d7391ff7e28cc376908cc98a652228d CC: libav-stable@libav.org
* utvideoenc: use av_image_copy_plane()Paul B Mahol2013-07-28
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* aasc: Check minimum buffer sizeLuca Barbato2013-07-28
| | | | | | | Prevent some overreads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* qdm2: Whitespace cosmeticsLuca Barbato2013-07-28
|
* flac: use meaningful return valuesLuca Barbato2013-07-28
|
* xl: Fix the buffer size checkLuca Barbato2013-07-28
| | | | | | | Also make it the first check. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* xl: K&R formatting cosmeticsLuca Barbato2013-07-28
|
* Add missing deprecation attributesDiego Biurrun2013-07-27
|
* h264: K&R formatting cosmeticsDiego Biurrun2013-07-27
|
* miscellaneous typo fixesDiego Biurrun2013-07-25
|
* mpeg12: Ignore slice threading if hwaccel is activeRémi Denis-Courmont2013-07-25
| | | | | | | Slice threading does not work with hardware acceleration, as decoding is per-picture. This fixes Bugzilla #542. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vdpau: Fix VC-1 interlaced modeRainer Hochecker2013-07-25
| | | | | | | | VDPAU expects the bitstream value (0, 2 or 3). libavcodec uses an enum (0, 1 or 2). Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Diego Biurrun <diego@biurrun.de>