aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/videotoolbox: allow not setting the kCVPixelBufferPixelFormatTypeKeywm42017-03-024-3/+9
| | | | | | | | | | | If AVVideotoolboxContext.cv_pix_fmt_type is set to 0, don't set the kCVPixelBufferPixelFormatTypeKey value on the VT decoder. This makes VT output its native format, which can be much faster on some hardware iterations (if the native format does not match with the requested format, it will be converted, which is slow). The default is still forcing nv12.
* avformat: fix AVStream private fields markerwm42017-03-021-1/+9
| | | | | | | | | | | | Public fields were added after the private fields (negating the entire point of this). New private fields go into AVStreamInternal anyway. The new marker was set by guessing which fields are supposed to be private and wshich not. recommended_encoder_configuration is accessed by ffserver_config.c directly, and is supposed to use the public API. ffmpeg.c accesses AVStream.cur_dts, even though it's a private field, but that seems to be an older error.
* avcodec, avutil, avformat: remove AVOption requirement for some fieldswm42017-03-027-76/+42
| | | | | | | | | | Allow all struct fields to be accessed directly, as long as they're public. Before this change, many fields were "public", but could be accessed via AVOption only. This meant they were effectively not public, but were present for documentation purposes, which was incredibly confusing at best.
* lavf/flacdec: Return maximum score if the streaminfo header is valid.Carl Eugen Hoyos2017-03-021-1/+8
|
* avcodec/vp56: Clear dimensions in case of failure in the middle of a ↵Michael Niedermayer2017-03-021-1/+6
| | | | | | | | | | | resolution change Similar code is used elsewhere in vp56 to force a more complete reinit in the future. Fixes null pointer dereference Fixes: 707/clusterfuzz-testcase-4717453097566208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Check value before shift in wp_exp2()Michael Niedermayer2017-03-021-0/+2
| | | | | | | | | | Fixes undefined shift, all callers should be changed to check the value they use with wp_exp2() or its return value. Fixes: 692/clusterfuzz-testcase-5757381516460032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ituh263dec: Use 0xffff as error code in h263p_decode_umotion()Michael Niedermayer2017-03-021-1/+1
| | | | | | | | | This matches ff_h263_decode_motion() both functions error codes are interpreted by the same common code Fixes: 690/clusterfuzz-testcase-4744944981901312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264idct_template: Fix several runtime error: signed integer overflowMichael Niedermayer2017-03-021-9/+9
| | | | | | | Fixes: 689/clusterfuzz-testcase-6029352737177600 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/oggdec: fix leak in ogg_restore()Michael Niedermayer2017-03-021-1/+5
| | | | | | | Fixes: asan_bug_leak Found-by: Thomas Guilbert <tguilbert@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/oggdec: Factor free_stream outMichael Niedermayer2017-03-021-7/+16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/oggdec: remove unused parameter of ogg_restore()Michael Niedermayer2017-03-021-8/+5
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/videotoolboxenc: fix symbol linkingRick Kern2017-03-011-2/+2
| | | | | | Removes explicit reference to symbols and fixes dereferencing issue. Signed-off-by: Rick Kern <kernrj@gmail.com>
* avcodec/vp8: Check for bitsteam end in decode_mb_row_no_filter()Michael Niedermayer2017-03-012-7/+15
| | | | | | | | | | | Fixes timeout with 686/clusterfuzz-testcase-5853946876788736 this shortcuts (i.e. speeds up) the error and return-to-user when decoding a truncated frame Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Previous version reviewed by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_direct: Fix runtime error: left shift of negative value -14Michael Niedermayer2017-03-011-1/+1
| | | | | | | Fixes: 682/clusterfuzz-testcase-4799120021651456 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/avpacket: Check metadata key in av_packet_unpack_dictionary()Michael Niedermayer2017-03-011-1/+1
| | | | | | | | Fixes timeout Fixes: 501/clusterfuzz-testcase-5672752870588416 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Makefile: Clean compat/atomics/pthread subdirectory.Carl Eugen Hoyos2017-03-011-0/+1
|
* avcodec/nvenc: add initial QP value optionsKonda Raju2017-03-015-9/+35
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/nvenc: remove qmin and qmax constraints for vbrGanapathy Raman Kasi2017-03-011-10/+3
| | | | | | | qmin and qmax are not necessary for nvenc vbr. Enforcing this constraint, doesn't allow user to use vbr 2 pass mode without explicity setting the qmin and qmax options Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* compat/cuda: fix ulong size on cygwinTimo Rothenpieler2017-03-012-12/+18
|
* Makefile: Clean compat subdirectory.Carl Eugen Hoyos2017-03-011-0/+2
| | | | Fixes ticket #5546.
* lavf/matroskadec: Fix demuxing sipr.Carl Eugen Hoyos2017-02-281-1/+1
| | | | Regression since 2c8d876d
* MAINTAINERS: Add Rodger Combs to ffmpeg-securityMichael Niedermayer2017-02-281-1/+1
| | | | | | | | Rodger Combs will be added to the ffmpeg-security alias when this patch is applied Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* MAINTAINERS: add wm4 to ffmpeg-securityMichael Niedermayer2017-02-281-1/+1
| | | | | | | | wm4 will be added to the ffmpeg-security alias when this patch is applied Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* MAINTAINERS: Make formating of ffmpeg-security entry the same as othersMichael Niedermayer2017-02-281-5/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vp56: Factorize vp56_render_mb() outMichael Niedermayer2017-02-281-54/+23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dca: Fix multiple runtime error: signed integer overflowMichael Niedermayer2017-02-282-3/+3
| | | | | | | | Fixes: 680/clusterfuzz-testcase-5416627266912256 Fixes: 681/clusterfuzz-testcase-5013323462475776 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: Check plane value before doing value/mask computationsMichael Niedermayer2017-02-281-2/+2
| | | | | | | | Fixes integer overflow Fixes: 675/clusterfuzz-testcase-6722971232108544 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: left shift of negative value -2650Michael Niedermayer2017-02-281-2/+2
| | | | | | | Fixes: 674/clusterfuzz-testcase-6713275880308736 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264idct_template: Fix multiple runtime error: signed integer overflowMichael Niedermayer2017-02-281-13/+13
| | | | | | | | Fixes: 677/clusterfuzz-testcase-6635120628858880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qdrw: check bytes per scanline for 2bpp imagesPaul B Mahol2017-02-271-1/+4
| | | | | | | One byte less is read in case of small width. Closes #6194. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/scpr: check if total_freq is 0 in decode0Paul B Mahol2017-02-271-6/+19
| | | | | | Fixes SIGFPE, closes #6196. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/h264: enable sse2 chroma deblock/loop filter functionsJames Darnley2017-02-272-0/+11
| | | | | Between 1.00 and 1.16 times faster on Intel Yorkfield Core 2 Quad. Between 1.11 and 1.39 times faster on Intel Kaby Lake Pentium.
* avcodec/h264: add avx 8-bit 4:2:2 chroma h intra deblock/loop filterJames Darnley2017-02-272-0/+19
| | | | ~1.37x faster (147 vs. 108 cycles) compared to mmxext function
* avcodec/h264: add avx 8-bit 4:2:0 chroma h intra deblock/loop filterJames Darnley2017-02-272-0/+10
| | | | ~1.10x faster (69 vs. 63 cycles) compared to mmxext function
* avcodec/h264: add avx 8-bit chroma v intra deblock/loop filterJames Darnley2017-02-272-0/+34
| | | | ~1.14x faster (90 vs 78 cycles) compared with mmxext
* avcodec/h264: add avx 8-bit 4:2:2 chroma h deblock/loop filterJames Darnley2017-02-272-0/+29
| | | | ~1.21x faster (68 vs. 56 cycles) compared with mmxext function
* avcodec/h264: add avx 8-bit 4:2:0 chroma h deblock/loop filterJames Darnley2017-02-272-0/+73
| | | | ~1.14x faster (93 vs. 81 cycles) compared with mmxext function
* avcodec/h264: add avx 8-bit chroma v deblock/loop filterJames Darnley2017-02-272-0/+40
| | | | ~1.24x faster (101 vs. 81 cycles) compared with mmxext function
* lavc/svq3: Remove an unused function.Carl Eugen Hoyos2017-02-271-5/+0
|
* avcodec/qdrw: consume bytes when end is reached for 8bpp casePaul B Mahol2017-02-271-1/+2
| | | | | | This should really be part of previous commit. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/qdrw: fix decoding of odd sized images for 8bppPaul B Mahol2017-02-271-8/+6
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/qdrw: fix decoding odd size images for 2bpp and 4bppPaul B Mahol2017-02-271-36/+24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/qdrw: fix decoding odd size images for 16bit casePaul B Mahol2017-02-271-14/+6
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* ffmpeg: Add a linebreak to an error message.Carl Eugen Hoyos2017-02-271-1/+1
|
* avdevice/decklink_dec: remove AVFMT_RAWPICTUREMarton Balint2017-02-261-1/+1
| | | | | | It has no effect for input devices. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_enc: convert AVFMT_RAWPICTURE to AV_CODEC_ID_WRAPPED_AVFRAMEMarton Balint2017-02-263-44/+42
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_enc: add support to specify field orderMarton Balint2017-02-265-12/+29
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_enc: convert to codecparMarton Balint2017-02-261-10/+10
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/scpr: add support for older versionPaul B Mahol2017-02-261-5/+46
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/flacdsp: Fix: runtime error: signed integer overflow: -1027555328 + ↵Michael Niedermayer2017-02-261-1/+1
| | | | | | | | | | -1226681270 cannot be represented in type 'int' Fixes: 673/clusterfuzz-testcase-5948736536576000 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>