aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '6d98959c8a5a749592a878b9523b31eccea5d102'Michael Niedermayer2014-01-131-14/+16
|\ | | | | | | | | | | | | | | | | | | | | * commit '6d98959c8a5a749592a878b9523b31eccea5d102': vc1: Add avg_no_rnd_vc1_chroma_mc4_c() Conflicts: libavcodec/vc1dsp.c See: dd6e291e4083b7af53968c0ae06330841f63405b Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: Add avg_no_rnd_vc1_chroma_mc4_c()Michael Niedermayer2014-01-131-0/+23
| | | | | | | | | | | | Needed for proper interlaced support. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e'Michael Niedermayer2014-01-131-48/+23
|\| | | | | | | | | | | | | * commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e': vc1: Factorize out chroma MC Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: Factorize out chroma MCLuca Barbato2014-01-131-48/+23
| |
* | avcodec/hevc: Check entry point arrays for malloc failureMichael Niedermayer2014-01-131-0/+5
| | | | | | | | | | | | | | Fixes null pointer dereference Fixes: signal_sigsegv_e1d3b6_2192_DBLK_F_VIXS_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: Bound check slice_qpLuca Barbato2014-01-131-1/+11
| | | | | | | | | | | | | | | | | | | | The T-REC-H.265-2013044 page 79 states they have to be into the range [-s->sps->qp_bd_offset, 51]. Fixes: asan_stack-oob_eae8e3_9522_WP_MAIN10_B_Toshiba_3.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: Reject impossible dependent tileLuca Barbato2014-01-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | The tile 0 cannot depend on a previous one. Prevent an out of array bound load in ff_hevc_cabac_init(). Fixes: asan_heap-oob_e3a924_1630_DBLK_A_MAIN10_VIXS_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Reviewed-by: Guillaume Martres <smarter@ubuntu.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffman: raise the input capability of ff_huff_gen_len_table() from ↵Michael Niedermayer2014-01-131-1/+1
| | | | | | | | | | | | 8 to 14bit Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffman: extend ff_huff_gen_len_table() to allow >8bitMichael Niedermayer2014-01-134-9/+22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vp9/x86: add ff_vp9_loop_filter_[vh]_16_16_ssse3().Clément Bœsch2014-01-123-0/+672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 16662 decicycles in loop_filter_h_16_16_c, 8387355 runs, 1253 skips 17510 decicycles in loop_filter_v_16_16_c, 8387516 runs, 1092 skips 4941 decicycles in ff_vp9_loop_filter_h_16_16_ssse3, 8387887 runs, 721 skips 3899 decicycles in ff_vp9_loop_filter_v_16_16_ssse3, 8387980 runs, 628 skips Overall decode time goes from: ./ffmpeg -v 0 -nostats -threads 1 -i ~/samples/vp9/ped1080p.webm -f null - 8.10s user 0.02s system 99% cpu 8.126 total to: ./ffmpeg -v 0 -nostats -threads 1 -i ~/samples/vp9/ped1080p.webm -f null - 6.15s user 0.04s system 99% cpu 6.199 total (46 to 61 fps)
* | vp9/x86: factor out some code in VP9_UNPACK_MULSUB_2W_4X.Clément Bœsch2014-01-121-8/+9
| |
* | vp9/x86: remove reg redundancy in VP9_MULSUB_2W_2X.Clément Bœsch2014-01-121-9/+9
| |
* | vp9/x86: merge IDCT coef macros.Clément Bœsch2014-01-121-23/+19
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-01-121-321/+403
|\| | | | | | | | | | | | | | | | | | | * qatar/master: vc1dsp: K&R formatting cosmetics Conflicts: libavcodec/vc1dsp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1dsp: K&R formatting cosmeticsLuca Barbato2014-01-121-321/+403
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | mpegts muxer, DVB subtitles encoder: common DVB subtitles payloadSerhii Marchuk2014-01-122-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improved DVB subtitles encoder to generate AVPacket.data in the same format as generates MPEGTS demuxer + DVB subtitles parser. So now single format of DVB subtitles data is used across all the components of FFmpeg: only subtitles payload WITHOUT 0x20 0x00 bytes at the beginning and 0xFF trailing byte. Improved MPEGTS muxer to support format of DVB subtitles in AVPacket.data described above: while muxing we add two bytes 0x20 0x00 to the beginning of and 0xFF to the end of DVB subtitles payload. The patch fixes DVB subtitle copy problems: tickets #2989 fully and #2024 partly. Signed-off-by: Clément Bœsch <u@pkh.me>
* | avcodec/dct-test: add support for C prores IDCTMichael Niedermayer2014-01-121-0/+10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: remove useless clip in FUNC(sao_band_filter)()Guillaume Martres2014-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | The src buffer should only contain values in the interval [0, (1 << BIT_DEPTH) - 1]. Since shift = (BIT_DEPTH - 5), src[x] >> shift must be in the interval [0, 31], so no clip is needed. This removes the code that was changed in 5856bca360c5bc3e340a357d91b1f993c80a7bea as the clip that was repositioned in that commit is removed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: clip pixels when transquant bypass is usedGuillaume Martres2014-01-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: asan_stack-oob_eae8e3_7333_WPP_B_ericsson_MAIN10_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind This is a more proper fix than 5856bca360c5bc3e340a357d91b1f993c80a7bea The reconstructed picture should always be clipped (see section 8.6.5), previously we did not clip coding units where cu_transquant_bypass_flag == 1 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dct-test: reproduce 4..1019 clipping when testing prores IDCTMichael Niedermayer2014-01-121-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dct-test: correct output bias of prores idctMichael Niedermayer2014-01-111-0/+4
| | | | | | | | | | | | This way the output values make sense Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vp9: fix mt-related hang a parser infinite loop.Ronald S. Bultje2014-01-112-3/+7
| | | | | | | | | | | | | | Fixes trac ticket 3274. Looked-at-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegenc: use a seperate chroma matrix when luma and chroma differMichael Niedermayer2014-01-111-28/+18
| | | | | | | | | | | | drop hardcoded TWOMATRIX code Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo_enc: init chroma matrix for mjpegMichael Niedermayer2014-01-111-0/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegenc: pass chroma quantization matrix through as well, not just lumaMichael Niedermayer2014-01-114-9/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hevc: Clip the pixel before shiftingLuca Barbato2014-01-111-1/+1
| | | | | | | | | | | | | | | | Prevent an out of array bound read. Fixes: asan_stack-oob_eae8e3_7333_WPP_B_ericsson_MAIN10_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc: use av_mallocz() for allocating tab_ipmMichael Niedermayer2014-01-111-1/+1
| | | | | | | | | | | | | | Fixes use of uninitialized memory and out of stack array read Fixes: signal_sigsegv_ecc526_7846_WPP_C_ericsson_MAIN_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/alac: warn if not all channels where decodedMichael Niedermayer2014-01-111-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/alac: only set *got_frame_ptr when all channels have been decodedMichael Niedermayer2014-01-111-1/+2
| | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f8b64436530_7895_quicktime_newcodec_applelosslessaudiocodec.m4a Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-01-112-0/+80
|\| | | | | | | | | | | | | | | | | | | * qatar/master: arm: Add an option for making sure NEON registers aren't clobbered Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * arm: Add an option for making sure NEON registers aren't clobberedMartin Storsjö2014-01-112-0/+80
| | | | | | | | | | | | This is pretty much based on the same test for XMM registers. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avcodec/wmalosslessdec: shrink output on error so no uninitialized data is ↵Michael Niedermayer2014-01-111-0/+3
| | | | | | | | | | | | | | | | | | returned Fixes use of uninitialized memory partly fixes: msan_uninit-mem_7f7834b6a530_6473_luckynight-partial.wma Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/wmalosslessdec: deallocate uninitialized frame on decode_tilehdr() ↵Michael Niedermayer2014-01-111-0/+1
| | | | | | | | | | | | | | | | | | failure Fixes use of uninitialized memory partly fixes: msan_uninit-mem_7f7834b6a530_6473_luckynight-partial.wma Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/wmalosslessdec: Pass on error code from decode_tilehdr()Michael Niedermayer2014-01-111-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'cehoyos/master'Michael Niedermayer2014-01-111-2/+2
|\ \ | | | | | | | | | | | | | | | | | | * cehoyos/master: Cast signed libopenjpeg data values to unsigned before shifting. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | Cast signed libopenjpeg data values to unsigned before shifting.Carl Eugen Hoyos2014-01-111-2/+2
| | | | | | | | | | | | | | | | | | This avoids undefined behaviour on left-shift. Reviewed-by: Michael Bradshaw
* | | vdpau: restore compatibility with deprecated fields in AVVDPAUContextHendrik Leppkes2014-01-102-0/+34
|/ / | | | | | | | | | | | | | | Fixes ticket #3133. Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com> Tested-by: EricV Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | nut: Support XYZ12 rawvideoMichael Niedermayer2014-01-101-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mss2: fix chroma dimensionsMichael Niedermayer2014-01-101-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix libopenjpeg colour range adjust for 8<bpp<16.Carl Eugen Hoyos2014-01-101-2/+2
| | | | | | | | | | | | Fixes ticket #3284. Reviewed-by: Michael Bradshaw
* | Support signed j2k images via libopenjpeg.Carl Eugen Hoyos2014-01-101-4/+4
| | | | | | | | | | | | Fixes ticket #3283. Reviewed-by: Michael Bradshaw
* | avcodec/mjpegdec: allow lowres with amvMichael Niedermayer2014-01-092-5/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: use the AVFrame width/height for flippingMichael Niedermayer2014-01-091-2/+2
| | | | | | | | | | | | This makes it possible to use the code with lowres Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: remove new flipping codeMichael Niedermayer2014-01-091-10/+1
| | | | | | | | | | | | | | | | | | | | | | It stored images wrong in the user provided buffers (that is you would end up with a wrongly flipped image if you used direct rendering). Also it used wrong dimensions as noticed by ubitux Enable the old code unconditionally so flipping works correctly again. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-01-095-2/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ATRAC3+ decoder Conflicts: Changelog configure libavcodec/atrac3plus.c libavcodec/atrac3plus.h libavcodec/atrac3plus_data.h libavcodec/atrac3plusdec.c libavcodec/atrac3plusdsp.c libavcodec/version.h See: 2e1fb96af36348479e14aa85f445915ea09e70fa Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ATRAC3+ decoderMaxim Polijakowski2014-01-098-1/+5003
| | | | | | | | | | | | Cleanup by Diego Biurrun. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* | Merge commit '4c642d8d98703faf52983243098f35865e15b312'Michael Niedermayer2014-01-091-1/+2
|\| | | | | | | | | | | | | * commit '4c642d8d98703faf52983243098f35865e15b312': x86: hpeldsp: Add missing av_cold attribute to init function Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: hpeldsp: Add missing av_cold attribute to init functionDiego Biurrun2014-01-091-1/+2
| |
* | Merge commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b'Michael Niedermayer2014-01-096-0/+6
|\| | | | | | | | | | | | | * commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b': x86: avcodec: Add a bunch of missing #includes for av_cold Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: avcodec: Add a bunch of missing #includes for av_coldDiego Biurrun2014-01-096-0/+6
| |