summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/prores_ks: Fix luma quantization if q >= MAX_STORED_QAlex Mogurenko2018-12-30
| | | | | | | | | | | | | The problem occurs in slice quant estimation and slice encoding: If the slice quant is larger than MAX_STORED_Q we don't use pre-calculated quant matrices, but generate a new one, but both qmat and qmat_chroma both point to the same table, so the luma table ends up having chroma table values. Add custom_chroma_q the same way as custom_q. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/wavpack: fix decoding of files with many channelsPaul B Mahol2018-12-28
| | | | Fixes decoding of Run_The_Race_-_3rd_Order_Ambisonic_SN3D.wv
* avcodec/mips: [loongson] optimize theora decoding in vp3dsp.gxw2018-12-27
| | | | | | | | | | | | | | Optimize theora decoding with msa in functions: 1. ff_vp3_idct_add_msa 2. ff_vp3_idct_put_msa 3. ff_vp3_idct_dc_add_msa 4. ff_vp3_v_loop_filter_msa 5. ff_vp3_h_loop_filter_msa 6. ff_put_no_rnd_pixels_l2_msa Theora decoding speed improved about 36%(from 22fps to 30fps, Tested on loongson 2K1000). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dnxhddec: fix block alignmentRamiro Polla2018-12-26
| | | | | | blockdsp requires 32 byte alignment. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/4xm: fix block alignmentRamiro Polla2018-12-26
| | | | | | blockdsp requires 32 byte alignment. Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/libdavs2: enable multithreadhwrenx2018-12-26
| | | | | Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: hwrenx <hwrenx@126.com>
* avcodec/lagarith: Remove duplicate checkMichael Niedermayer2018-12-25
| | | | | Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libvpxenc: add VP8/9 sharpness config optionRene Claus2018-12-24
| | | | | | | | This commit adds configuration options to libvpxenc.c that can be used to tune the sharpness parameter for VP8 and VP9. Signed-off-by: Rene Claus <rclaus@google.com> Signed-off-by: James Zern <jzern@google.com>
* avcodec/mips: Fix failed case: hevc-conformance-AMP_A_Samsung_* when enable msagxw2018-12-24
| | | | | | | | | The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is still 32 in function ff_hevc_sao_edge_filter_8_msa. So, use AV_INPUT_BUFFER_PADDING_SIZE directly. Also, use MAX_PB_SIZE directly instead of 64. Fate tests passed. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wmavoice: use init_get_bits8()Paul B Mahol2018-12-23
|
* avcodec/g722dec: use init_get_bits8()Paul B Mahol2018-12-23
|
* avcodec/fic: use init_get_bits8()Paul B Mahol2018-12-23
|
* avcodec/fic: Fail on invalid slice size/offMichael Niedermayer2018-12-23
| | | | | | | | Fixes: Timeout Fixes: 11486/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FIC_fuzzer-5677133863583744 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ivi: Avoid mbs memleakMichael Niedermayer2018-12-23
| | | | | | | Fixes: 11696/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO5_fuzzer-5740319635668992 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ilbcdec: fix integer overflow in energyMichael Niedermayer2018-12-23
| | | | | | | | | | webrtc uses a int32_t like the existing code in ilbcdec Fixes: signed integer overflow: 2080245063 + 257939661 cannot be represented in type 'int' Fixes: 11037/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5682976612941824 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g723_1dec: use init_get_bits8()Paul B Mahol2018-12-23
|
* avcodec: add g732_1 parserPaul B Mahol2018-12-23
|
* cbs_av1: Fix reading of overlong uvlc codesMark Thompson2018-12-22
| | | | | | | | | | | | | | | | The specification allows 2^32-1 to be encoded as any number of zeroes greater than 31, followed by a one. This previously failed because the trace code would overflow the array containing the string representation of the bits if there were more than 63 zeroes. Fix that by splitting the trace output into batches, and at the same time move it out of the default path. (While this seems likely to be a specification error, libaom does support it so we probably should as well.) From a test case by keval shah <skeval65@gmail.com>. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/opus_rc: Cast a const pointer to uint8_t *.Carl Eugen Hoyos2018-12-22
| | | | | Silences a warning with clang on arm: libavcodec/opus_rc.c:170:17: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
* avcodec/cbs_av1: fix parsing delta_frame_id_minus1James Almer2018-12-20
| | | | | | | | | | delta_frame_id_minus1 is not a single value in the bitstream, and can store values up to 17 bits wide. Fixes parsing files with frame ids. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/vc1_parser: use init_get_bits8()Paul B Mahol2018-12-20
|
* lavc/libkvazaar: indent the codeJun Zhao2018-12-20
| | | | | | indent the code to follow FFmpeg's coding style Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* lavc/libkvazaar: Use avctx->frame_rate first for framerate settingJun Zhao2018-12-20
| | | | | | | perfer avctx->frame_rate first than use avctx->time_base when setting the frame rate to encoder. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* lavc/options_table: Change some options location in opt table.Jun Zhao2018-12-20
| | | | | | | Change the some options location in avcodec_options to make code more readable. And update the fate test with this change. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avcodec/rpza: Check that there is enough data for all the blocksMichael Niedermayer2018-12-19
| | | | | | | | Fixes: Timeout Fixes: 11547/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RPZA_fuzzer-5678435842654208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/rpza: Move frame allocation to a later pointMichael Niedermayer2018-12-19
| | | | | | This will allow performing some fast checks before the slow allocation Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/avcodec: Document the data type for AV_PKT_DATA_MPEGTS_STREAM_IDMichael Niedermayer2018-12-19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/libaomenc: fix breakage from upstreamHelmut K. C. Tessarek2018-12-19
| | | | | | | commit https://aomedia.googlesource.com/aom/+/4667aa1a373566e9c124afcd58c71731ab0d7377 changed parts of the code that broke compilation of libavcodec/libaomenc.c Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mjpegdec: Fix indention of ljpeg_decode_yuv_scan()Michael Niedermayer2018-12-19
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mjpegdec: verify SOF len field validityMichael Niedermayer2018-12-19
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g723_1dec: improve stereo supportPaul B Mahol2018-12-18
|
* avcodec/g723_1dec: reindent after last commitPaul B Mahol2018-12-18
|
* avcodec/g723_1: add support for stereo filesPaul B Mahol2018-12-18
|
* lavc/mjpegdec: Interpret three-component Adobe transform 0 also as RGB.Carl Eugen Hoyos2018-12-18
| | | | | | While there, make a comparison with "RGB" more readable. Fixes ticket #7625.
* avcodec/mips: [loongson] enable MSA optimization for loongson platform.Shiyou Yin2018-12-18
| | | | | | Set initialization order of MSA after MMI to make it work on loongson platform(msa is supported by loongson2k、3a4000 etc.). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/qsv_hevc: correct QSV HEVC default plugin on WindowsZhong Li2018-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. Old logic meaned: everywhere, except Windows, ffmpeg has to use HW acceleration, but on Windows ffmpeg has to use (unavailable) software HEVC by default 2. Software HEVC is available only if you provide corresponding software MediaSDK library, which isn't provided with ffmpeg. More information could be found in https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/samples/readme-encode_linux.pdf 3. HW HEVC decoding/encoding are available on Windows in the driver by default Note: Default case should be the most common case but this change still has potential risk on windows if HW path is not supported(or doesn't work as expection). (See the historical disscution: https://lists.libav.org/pipermail/libav-devel/2016-November/080419.html). In such case, two options suggested: 1. Use the option "-load_plugin hevc_sw" to switch SW path manually. 2. Or report bug to Intel windows driver if your GPU can support HEVC HW codec. (HEVC decoding is supported since Braswell, and encoding supported since Skylake) Patch started by Landgraph. Add similar change for hevc decoder and bump a new version. Reviewed-by: Mark Thompson <sw@jkqxz.net> Reviewed-by: Maxym Dmytrychenko <maxim.d33@gmail.com> Signed-off-by: Landgraph <me@landgraph.ru> Signed-off-by: Zhong Li <zhong.li@intel.com>
* lavc/cbs: Do not use format specifier "z" on Windows.Carl Eugen Hoyos2018-12-17
|
* avcodec/tiff: add support for 12bit grayscale imagesPaul B Mahol2018-12-16
| | | | Fixes #4688.
* avcodec/rasc: Check that the number of moves is less than or equal the ↵Michael Niedermayer2018-12-16
| | | | | | | | | | | number of pixels Fixes: OOM Fixes: 10307/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5393974559244288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vp7: Check for end of input in vp78_decode_mv_mb_modes()Michael Niedermayer2018-12-16
| | | | | | | | | Fixes: Timeout Fixes: 10313/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP7_fuzzer-5637719389110272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/g729dec: Cosmetics, fix indentation after last commit.Carl Eugen Hoyos2018-12-15
|
* lavc/g729dec: Support stereo streams.Carl Eugen Hoyos2018-12-15
| | | | Fixes ticket #4553.
* avcodec/clearvideo: Check remaining input bits in P macro block loopMichael Niedermayer2018-12-14
| | | | | | | | Fixes: Timeout Fixes: 11083/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CLEARVIDEO_fuzzer-5657180351496192 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvdsubdec: discard accumulated buffer on errorMichael Niedermayer2018-12-14
| | | | | | | | Fixes: Timeout Fixes: 10992/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5657495410835456 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/rasc: Check input space before reading chunkMichael Niedermayer2018-12-14
| | | | | | | | Fixes: Timeout Fixes: 11118/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5652564066959360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg: Initialize quarter_sample parameter from previous thread.Andriy Gelman2018-12-14
| | | | | | | Fixes #7410. The value of sub-pixel precision for me/mc can change during an Intra frame. In multi-threaded decoding this change is not propagated to other frame threads causing decoding artifacts. This patch initializes the sub-pixel precision parameter from previous thread, which fixes the issue. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ass_split: fix a memory leak defect when realloc failsFan Gang2018-12-14
| | | | Fixes #7019.
* avformat/nut: add support for yuva444/422p12 pixel formatPaul B Mahol2018-12-14
|
* avcodec/xfacedec: fix order of operationsPaul B Mahol2018-12-13
| | | | Fixes #6745.
* bump micro after recent gif changesPaul B Mahol2018-12-13
|