summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec/dca_xll: signed integer overflow: 255251 * 32768 cannot be ↵Michael Niedermayer2017-02-21
| | | | | | | | represented in type 'int' Fixes: 627/clusterfuzz-testcase-5020897033322496 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Factorize CHECK/SUINT codeMichael Niedermayer2017-02-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* speedhq: fix decoding artifactsSteinar H. Gunderson2017-02-21
| | | | | | | | | | | | | | | | The quantization table is stored in the natural order, but when we access it, we use an index that's in zigzag order, causing us to read the wrong value. This causes artifacts, especially in areas with horizontal or vertical edges. The artifacts look a lot like the DCT ringing artifacts you'd expect to see from a low-bitrate file, but when comparing to NewTek's own decoder, it's obvious they're not supposed to be there. Fix by simply storing the scaled quantization table in zigzag order. Performance is unchanged. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/source: Check for cases that could use av_clip_uintp2() and av_clip_intp2()Michael Niedermayer2017-02-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/nvenc: allow forcing keyframes by defaultTimo Rothenpieler2017-02-20
|
* lavf/mov.c: Correct keyframe search in edit list to return the very first ↵Sasi Inguva2017-02-20
| | | | | | | keyframe/frame with matching timestamp. Fixes ticket#5904 Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpegaudiodec: Eliminate many undefined operationsMichael Niedermayer2017-02-20
| | | | | | | | Fixes: 625/clusterfuzz-testcase-4574924406521856 Fixes: 626/clusterfuzz-testcase-4738718621499392 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pictordec: Do not read more than nb_planesMichael Niedermayer2017-02-20
| | | | | | | | Fixes undefined behavior Fixes: 622/clusterfuzz-testcase-5745722022428672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_atempo: fix drift calculation, ticket #6157Pavel Koshevoy2017-02-20
| | | | | | | ticket #6157 Reported-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Pavel Koshevoy <pkoshevoy@gmail.com>
* avcodec/ituh263dec: Check cbpy in ff_h263_decode_mb()Michael Niedermayer2017-02-20
| | | | | | | Fixes: 618/clusterfuzz-testcase-6594990333493248 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/srtdec: Fix signed integer overflow: 1811992524 * 384 cannot be ↵Michael Niedermayer2017-02-19
| | | | | | | | | represented in type 'int' Fixes: 617/clusterfuzz-testcase-6413875723370496 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_ps: Fix runtime error: signed integer overflow: -1094995528 * 2 ↵Michael Niedermayer2017-02-19
| | | | | | | | cannot be represented in type 'int' Fixes: 615/clusterfuzz-testcase-5488002644049920 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_cabac: runtime error: signed integer overflow: 2147483647 + 14 ↵Michael Niedermayer2017-02-19
| | | | | | | | | cannot be represented in type 'int' Fixes: 614/clusterfuzz-testcase-4931860079575040 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg4videodec: Fix runtime error: shift exponent -2 is negativeMichael Niedermayer2017-02-19
| | | | | | | Fixes: 612/clusterfuzz-testcase-4707817137111040 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mjpegdec: Fix runtime error: left shift of negative value -507Michael Niedermayer2017-02-19
| | | | | | | Fixes: 611/clusterfuzz-testcase-5613455820193792 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/eac3dec: Fix runtime error: left shift of negative valueMichael Niedermayer2017-02-19
| | | | | | | Fixes: 610/clusterfuzz-testcase-4831030085156864 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* opus_pvq: fix PVQ search for K < 5 and low NsRostislav Pehlivanov2017-02-19
| | | | | | | | | | | | | | | | If the PVQ search picked a place to increment/decrement on the y[] vector which had no pulse then it would cause a desync since it would change the sum in the wrong direction. Fix this by not considering places without pulses as viable. This makes the PVQ search slightly worse at K < 5 which isn't all that common. Still, this is a workaround to prevent making broken files until I can think of a better way of fixing it. Also add an assertion, which can be removed or moved to assert1/2 once the PVQ search is stable. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec/pngdec: Check bit depth for validityMichael Niedermayer2017-02-19
| | | | | | | | | | Fixes: runtime error: shift exponent 132 is too large for 32-bit type 'int' Fixes: 609/clusterfuzz-testcase-4825202619842560 See 11.2.2 IHDR Image header Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg12dec: Fix runtime error: left shift of negative valueMichael Niedermayer2017-02-19
| | | | | | | Fixes: 608/clusterfuzz-testcase-603978286392934 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/f_setcmd: fix null pointer dereference on using dash as intervalMarton Balint2017-02-19
| | | | | | | Fixes Coverity CID 1396259. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/iec61883: free packet on buffer allocation errorMarton Balint2017-02-19
| | | | | | Fixes Coverity CID 1396416. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/fifo: assert on disallowed message type and state combinationsMarton Balint2017-02-19
| | | | | | Fixes Coverity CID 1396277. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/huffyuvencdsp: use an actual unsigned long constantJames Almer2017-02-19
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/huffyuvdsp: use an actual unsigned long constantJames Almer2017-02-19
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/wavpacl: Fix runtime error: left shift of negative value -1Michael Niedermayer2017-02-19
| | | | | | | Fixes: 607/clusterfuzz-testcase-5108792465293312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/flac: Fix several integer overflowsMichael Niedermayer2017-02-19
| | | | | | Fixes: 686513-media Found-by: Matt Wolenetz <wolenetz@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Factor CHECKED out of DEBUG so it can be set seperatlyMichael Niedermayer2017-02-19
| | | | | Suggested-by: Matt Wolenetz <wolenetz@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pngdec: Store metadata directly into AVFrameMichael Niedermayer2017-02-19
| | | | | | | | Fixes memleak Fixes: 500/clusterfuzz-testcase-6315221727576064 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: Also fill dts==RELATIVE_TS_BASE packets in ↵Michael Niedermayer2017-02-19
| | | | | | | | | | | | update_initial_durations() This dts value can end up in the list in the absence of durations and is in that case semantically identical to AV_NOPTS_VALUE. We can alternatively prevent storing RELATIVE_TS_BASE if there is no duration. Fixes Ticket3640 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg12dec: Provide debug level log on skiped P/B framesMichael Niedermayer2017-02-19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264: sse2, avx h luma mbaff deblock/loop filterJames Darnley2017-02-18
| | | | | | | | | | | | | | x86-64 only Yorkfield: - sse2: ~2.17x (434 vs. 200 cycles) Nehalem: - sse2: ~2.94x (409 vs. 139 cycles) Skylake: - sse2: ~3.10x (370 vs. 119 cycles) - avx: ~3.29x (370 vs. 112 cycles)
* x86util: import MOVHL macroJames Darnley2017-02-18
| | | | | | | | | | Originally committed to x264 in 1637239a by Henrik Gramner who has agreed to re-license it as LGPL. Original commit message follows. x86: Avoid some bypass delays and false dependencies A bypass delay of 1-3 clock cycles may occur on some CPUs when transitioning between int and float domains, so try to avoid that if possible.
* avcodec/h264: add named parameters to x86 functionJames Darnley2017-02-18
|
* avcodec/x86: deduplicate PASS8ROWS macroJames Darnley2017-02-18
|
* tests/fate/hevc: remove vsync drop from where it is not needed anymoreMichael Niedermayer2017-02-18
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cuvid: add drop_second_field as input optionMiroslav Slugeň2017-02-18
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/cuvid: don't overwrite deinterlace at progressive inputMiroslav Slugeň2017-02-18
| | | | | | | If there is progressive input it will disable deinterlacing in cuvid for all future frames even those interlaced. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avformat/m4vdec: Detect raw mpeg4video with unidentified non mpeg headers ↵Michael Niedermayer2017-02-18
| | | | | | | | | | | with a very low score Fixes Ticket 6018 This fixes a regression, and allows playback of files containing mpeg4video that are otherwise not supported Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hlsenc: set default http method to PUT when method is nullSteven Liu2017-02-18
| | | | | | | | | | When the http method is not set, the method will use POST for ts, PUT for m3u8, it is not unify, now set it unify. This ticket id: #5315 Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* opusenc: initialize the emphasis coefficients on initRostislav Pehlivanov2017-02-18
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* lavf/riff: Support decoding files with broken mediasubtype base guid.Thierry Foucu2017-02-17
| | | | Fixes ticket #6100.
* avcodec/opus: Check count of ambisonic channelsMichael Niedermayer2017-02-17
| | | | | | | https://tools.ietf.org/html/draft-ietf-codec-ambisonics-01#section-3.1 specifies the maximum as 227 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libopus: decode ambisonics with non-diegetic sourcesFelicia2017-02-17
| | | | | | | | | | | Channel mapping 2 additionally supports a non-diegetic stereo track appended to the end of a full-order ambisonics signal, such that the total channel count is either (n + 1) ^ 2, or (n + 1) ^ 2 + 2 where n is the ambisonics order Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/fmvc: fix decoding of odd size videosPaul B Mahol2017-02-17
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavc/avpacket: Initialize a variable in error path.Carl Eugen Hoyos2017-02-17
| | | | | | Fixes ticket #6153. Tested-by: Tyson Smith
* wmaprodec: fix leaking fdsp on init failureAndreas Cadhalpun2017-02-17
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mpegaudiodec_template: fix leaking fdsp for mp3on4floatAndreas Cadhalpun2017-02-17
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* vaapi_vp8: Use VP8_MAX_QUANT instead of magic numberMark Thompson2017-02-17
|
* doc: correct order of options for channelmap filterMulvya2017-02-16
| | | | Signed-off-by: Mulvya <mulvya@gmail.com>
* Changelog: add entry for the native Opus encoderRostislav Pehlivanov2017-02-16
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>