summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* hevc: Conceal zero tdLuca Barbato2014-02-09
| | | | | | | | | It was done only in check_mvset(), while mv_scale() is called also by dist_scale(). Sample-Id: 00001579-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dnxhd: Support DNx444Kostya Shishkov2014-02-09
| | | | | | Bug-Id: 99 Bug-Id: videolan/9620 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vp8: fix PPC assembly to work if src_stride != dst_strideRonald S. Bultje2014-02-09
| | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* asvenc: free avctx->coded_frame on codec closeJanne Grunau2014-02-09
|
* arm: Remove a stray .fpu directiveMartin Storsjö2014-02-09
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhddec: return proper error codeAlexandra Khirnova2014-02-09
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* g2meet: rename FRAME_INFO to more appropriate DISPLAY_INFOMaxim Poliakovski2014-02-09
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mlp_parser: fix request_channel_layout behavior.Tim Walker2014-02-08
| | | | | | | | | | | When request_channel_layout is 0, all substreams should be decoded. Thanks to Michael Niedermayer for spotting. Also fix a mismatch between the parser and decoder when request_channel_layout is a subset of Stereo.
* mlpdec: fix request_channel_layout behavior.Michael Niedermayer2014-02-08
| | | | | | | When request_channel_layout is 0, all substreams should be decoded. Signed-off-by: Tim Walker <tdskywalker@gmail.com>
* Mirillis FIC video decoderKostya Shishkov2014-02-08
| | | | | | Does not contain cursor rendering yet. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* mlp: improve request_channel_layout behavior.Tim Walker2014-02-08
| | | | | | | | | | Don't decode further substreams if request_channel_layout is a subset of the current substream's channel_layout. Before, we would only discard further substreams if request_channel_layout matched the substream's channel_layout extactly, thus decoding additional channels which the caller would probably end up downmixing.
* dca: include dcadsp.h in {arm,x86}/dca.h for checkheadersJanne Grunau2014-02-08
|
* h264: give numbers to nalusVittorio Giovara2014-02-08
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* x86: use the inline int8x8_fmul_int32 only if inline SSE2 is availbaleJanne Grunau2014-02-08
| | | | | Fixes compilation with MSVC. Also does not rely on on earlier config.h include but include it directly.
* dcadsp: split lfe_dir casesChristophe Gisquet2014-02-07
| | | | | | | | | The x86 runs short on registers because numerous elements are not static. In addition, splitting them allows more optimized code, at least for x86. Arm asm changes by Janne Grunau. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* x86: dcadsp: implement int8x8_fmul_int32Christophe Gisquet2014-02-07
| | | | | | | | | | | For the callable function (as opposed to the inline one): C SSE SSE2 SSE4 Win32: 47 42 29 26 Win64: 30 33 25 23 The SSE version is neither compiled nor set for ARCH_X86_64, as the inlinable function takes over. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* dcadsp: add int8x8_fmul_int32 to dsp contextChristophe Gisquet2014-02-07
| | | | | | | | | | | | | | It is currently declared as a macro who is set to inlinable functions, among which a Neon and a default C implementations. Add a DSP parameter to each inline function, unused except by the default C implementation which calls a function from the DSP context. On an Arrandale CPU, gain for an inlined SSE2 function vs. a call: - Win32: 29 to 26 cycles - Win64: 25 to 23 cycles Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* arm: Add X() around all references to extern symbolsMartin Storsjö2014-02-07
| | | | | | Don't rely on the fact that an unprefixed label currently exists. Signed-off-by: Martin Storsjö <martin@martin.st>
* vp8: fix bilinear C code to work if src_stride != dst_stride.Ronald S. Bultje2014-02-06
| | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* vp8: Use 2 registers for dst_stride and src_stride in neon bilin filterMartin Storsjö2014-02-06
| | | | | | Based on a patch by Ronald S. Bultje. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpeg: K&R formatting cosmeticsVittorio Giovara2014-02-04
| | | | | | | Also adjust header #include order and some comments. Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lagarith: reallocate rgb_planes when neededAnton Khirnov2014-02-04
| | | | | | | Fixes invalid writes on pixel format changes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* truemotion1: check the header sizeAnton Khirnov2014-02-04
| | | | | | | Fixes invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* shorten: pad the internal bitstream bufferAnton Khirnov2014-02-04
| | | | | | | Fixes invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* eacmv: clear references on frame dimensions changeAnton Khirnov2014-02-04
| | | | | | | Fixes invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* avcodec: Suppress deprecation warnings from avcodec_alloc_frame()Diego Biurrun2014-02-04
| | | | The function is itself obsolete and slated for removal.
* jvdec: K&R formatting cosmeticsVittorio Giovara2014-02-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: reset data partitioning at the beginning of each decode callAnton Khirnov2014-02-04
| | | | | | | | | Prevents using GetBitContexts with data from previous calls. Fixes access to freed memory. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* vp8: use a fixed-size edge emu bufferAnton Khirnov2014-02-04
| | | | | | The reason is the same as for e588615d938f8581f0d6f3771662d08cadfc00de Based on a patch by Ronald S. Bultje <rsbultje@gmail.com>
* utvideoenc: Add support for the new BT.709 FourCCs for YCbCrJan Ekström2014-02-04
| | | | | | | | With cli usage the decoder might have not set the colorspace during encoder init, manual colorspace override might be needed in such cases. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: check that the VCL NAL types are the same for all slice segments of a ↵Anton Khirnov2014-02-04
| | | | | | | | | | frame Fixes possible invalid memory access for mismatching skipped/non-skipped slice segments. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Sample-Id: 00001533-google
* hevc: Reject impossible slice segmentLuca Barbato2014-02-01
| | | | | | | | | A dependent slice cannot have address 0. Prevent an out of array bound load in ff_hevc_cabac_init(). Sample-Id: 00001406-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* hevc: Consider first quantization group any reference to 0, 0Luca Barbato2014-02-01
| | | | | | | | According to my understanding of T-REC-H.265-2013044 chapter 8.6.1. Sample-Id: 00001438-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* xvid: switch to xvid mmx idct as soon as possibleJanne Grunau2014-01-31
| | | | | | | The idct implementation cannot be changed after the quantization matrices are read since it use a different permutaion. Bug-Id: videolan/7411
* atrac3plus: Make initialization dependant on channel count rather than ↵Jan Ekström2014-01-31
| | | | | | | | channel map Makes it easier to recreate an AVCodecContext for ATRAC3+ decoding, which is needed in multimedia frameworks, as well as in general cases where demuxing and decoding are separate entities.
* x86: videodsp: Fix a bug in a %if statement where we used '%%' instead of '&&'.Ronald S. Bultje2014-01-30
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* x86: videodsp: Properly mark sse2 instructions in emulated_edge_mc as such.Ronald S. Bultje2014-01-30
| | | | | | | | Should fix crashes or corrupt output on pre-SSE2 CPUs when they were using SSE2-code (e.g. AMD Athlon XP 2400+ or Intel Pentium III) in hfix or hvar single-edge (left/right) extension functions. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* ac3dec: Allow asymmetric application of DRC when drc_scale > 1John Stebbins2014-01-29
| | | | | Amplification of quiet sounds is enhanced. Inspired by gbooker's A52Decoder.
* mpeg: Drop unused parameters from ff_draw_horiz_band()Diego Biurrun2014-01-29
|
* mpeg12: check scantable indices in all decode_block functionsJanne Grunau2014-01-25
| | | | | | | | | Add checks to the fast functions used with CODEC_FLAGS2_FAST and move the check for all other functions to before the invalid memory is accessed. Fixes https://trac.videolan.org/vlc/ticket/9713 with CODEC_FLAGS2_FAST. CC: libav-stable@libav.org
* avutil: remove timer.h include from internal.hJanne Grunau2014-01-25
| | | | Added libavutil/timer.h include to all files with {START,STOP}_TIMER.
* dxtory: compressed RGB555/RGB565 decoding supportKostya Shishkov2014-01-24
|
* dxtory: add more compressed and uncompressed modesKostya Shishkov2014-01-24
|
* vp9: fix bugs in updating coef probabilities with parallelmode=1Guillaume Martres2014-01-24
| | | | | | | | | - The memcpy was completely wrong because s->prob_ctx[s->framectxid].coef is a [4][2][2][6][6][3] array, whereas s->prob.coef is a [4][2][2][6][6][11] array. - The additional check was committed to ffmpeg by Ronald S. Bultje. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vp9: fix mvref finding to adhere to bug in libvpx.Ronald S. Bultje2014-01-24
| | | | | | Fixes a particular youtube video that I unfortunately can't share. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo_enc: Don't call ff_h263dsp_init unconditionallyMartin Storsjö2014-01-22
| | | | | | | This fixes builds with e.g. --disable-decoders --disable-encoders --enable-encoder=mjpeg. Signed-off-by: Martin Storsjö <martin@martin.st>
* bfin: vp3: Mark all binary object sections appropriatelyDiego Biurrun2014-01-22
| | | | This fixes a leftover from e44d7c659ba56d7efd6de10d5d99a1c44fd997fa.
* h264: skip chroma edges at the picture boundary while deblocking 4:4:4Janne Grunau2014-01-22
| | | | | | | | | This handles macroblock edges for the chroma components in the same way as for the luma compoment for 4:4:4 streams. The Spec explicitly states that the deblocking filter is not applied to edges at the boundary of the picture. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* lavc: do not force the emu edge flagAnton Khirnov2014-01-21
| | | | | | | The default get_buffer2() implementation (and possibly some user ones) does not allocate edges when this flag is set, which may expose bugs in some decoders. Until the 10 release is out, it is safer to remove this part.
* dxtory: change error code for unexpected slice configurationKostya Shishkov2014-01-21
|