summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/nvenc: sanitize variable namesTimo Rothenpieler2017-09-071-17/+17
|
* avcodec/nvenc: migrate to new encode APITimo Rothenpieler2017-09-074-11/+70
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/fitsdec: write output to frame directlyParas Chadha2017-09-061-3/+2
| | | | | Signed-off-by: Paras Chadha <paraschadha18@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: use av_freep()James Almer2017-09-061-2/+2
| | | | This prevents leaving dangling pointers.
* avcodec/audiotoolboxdec: switch to the new generic filtering mechanismJames Almer2017-09-061-53/+20
| | | | | Tested-by: ubitux Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: add FF_CODEC_CAP_INIT_CLEANUP to the decoder ↵James Almer2017-09-061-2/+3
| | | | | | | | | capabilities Extradata may be allocated and the AudioConverterRef may be created during init(), which in case of a failure would not be freed as close() isn't called afterwards. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: always use a copy of the AVCodecContext extradataJames Almer2017-09-061-2/+8
| | | | | | Fixes memleaks introduced by 954e2b3d34b7c2d82871254f07e2f8a39bc451cb Signed-off-by: James Almer <jamrial@gmail.com>
* libavcodec/mips: Improve avc idct8 msa functionKaustubh Raste2017-09-051-2/+2
| | | | | | | | Replace memset call with msa stores. Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com> Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: add AV_HWACCEL_CODEC_CAP_EXPERIMENTAL flagJames Almer2017-09-043-4/+10
| | | | | | | | This flag replaces the deprecated, non-prefixed HWACCEL_CODEC_CAP_EXPERIMENTAL one. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dirac_vlc: Fix invalid shift in ff_dirac_golomb_read_32bit()Michael Niedermayer2017-09-021-0/+3
| | | | | | | | Fixes: runtime error: shift exponent 64 is too large for 64-bit type 'residual' (aka 'unsigned long') Fixes: 2838/clusterfuzz-testcase-minimized-6260066086813696 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dirac_dwt: Fix multiple overflows in 9/7 liftingMichael Niedermayer2017-09-021-4/+4
| | | | | | | | Fixes: runtime error: signed integer overflow: 1073901567 + 1073901567 cannot be represented in type 'int' Fixes: 3124/clusterfuzz-testcase-minimized-454643435752652 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/diracdec: Fix integer overflow in INTRA_DC_PRED()Michael Niedermayer2017-09-021-1/+1
| | | | | | | | | Fixes: runtime error: signed integer overflow: 1168175789 + 1168178473 cannot be represented in type 'int' Fixes: 3081/clusterfuzz-testcase-minimized-4807564879462400 Fixes: 2844/clusterfuzz-testcase-minimized-5561715838156800 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/nvenc: always output picture timing SEITimo Rothenpieler2017-09-021-2/+4
| | | | | | | | Interlaced encoding profits from it, or might even need it in some players. No harm in enabling it unconditionally. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/internal: move FF_QSCALE_TYPE defines from avcodec.hJames Almer2017-09-011-0/+7
| | | | | | Their use in the public header is deprecated and will be removed, but they are still needed by some codecs at least as long as qscale related deprecated fields in the AVFrame struct remain in the tree.
* avcodec/nvenc: only push cuda context on encoder close if encoder existsTimo Rothenpieler2017-09-011-12/+13
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/nvenc: add support for specifying entropy coding modeTimo Rothenpieler2017-09-014-1/+18
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avocdec/libopus: fix typopkviet2017-09-011-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/fits: add missing header includesJames Almer2017-08-311-0/+4
| | | | | | Fixes checkheaders. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/codec_desc: make FITS description longerPaul B Mahol2017-08-301-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Add FITS EncoderParas Chadha2017-08-303-1/+131
| | | | Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
* Add FITS DecoderParas Chadha2017-08-308-2/+613
| | | | Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
* avcodec/snowdec: Fix integer overflow in decode_subband_slice_buffered()Michael Niedermayer2017-08-291-1/+1
| | | | | | | | Fixes: runtime error: signed integer overflow: 267 * 8388608 cannot be represented in type 'int' Fixes: 2743/clusterfuzz-testcase-minimized-5820652076400640 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/hevc_ps: Fix undefined shift in pcm codeMichael Niedermayer2017-08-291-3/+3
| | | | | | | | Fixes: runtime error: shift exponent -1 is negative Fixes: 3091/clusterfuzz-testcase-minimized-6229767969832960 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264idct_template: Fix integer overflow in ff_h264_idct8_add()Michael Niedermayer2017-08-291-14/+14
| | | | | | | | Fixes: 2891/clusterfuzz-testcase-minimized-5881795457318912 Fixes: runtime error: signed integer overflow: 1551827968 - -775913984 cannot be represented in type 'int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/snowenc: fix setting motion_est optionJames Almer2017-08-282-5/+9
| | | | | | | | Remove usage of FF_MPV_COMMON_OPTS, and set SnowContext.motion_est directly. Based on code from svq1enc.c Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
* hevc: Add names for reserved NAL unit typesMark Thompson2017-08-281-0/+16
| | | | | | | While not yet used, these NAL units do already have some defined semantics and are referred to elsewhere. (cherry picked from commit 3daaa4417317ca732fb00476fdb3308d784f87e4)
* lavc/vaapi_encode: Change the slice/parameter buffers to dynamic alloc.Jun Zhao2017-08-282-16/+32
| | | | | | | | Change the slice/parameter buffers to be allocated dynamically. Signed-off-by: Wang, Yi A <yi.a.wang@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* lavc/vaapi_encode_h265: Enable VBR modeJun Zhao2017-08-281-5/+10
| | | | | | | Follow vaapi_h264 style, enable the VBR mode. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avcodec/aacpsdsp_template: Fix undefined integer overflow in ps_add_squares_c()Michael Niedermayer2017-08-271-1/+1
| | | | | | | | Fixes runtime error: signed integer overflow: 1997494407 + 613252359 cannot be represented in type 'int' Fixes: 2014/clusterfuzz-testcase-minimized-5186337030275072 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/sbrdsp_fixed: Fix undefined overflows in autocorrelate()Michael Niedermayer2017-08-271-18/+18
| | | | | | | | Fixes: runtime error: signed integer overflow: 8903997421129740175 + 354481484684609529 cannot be represented in type 'long' Fixes: 2045/clusterfuzz-testcase-minimized-6751255865065472 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcoec/snowenc: silence some deprecation warningsJames Almer2017-08-261-0/+10
|
* lavc/sinewin_tablegen: Fix compilation with --enable-hardcoded-tables.Carl Eugen Hoyos2017-08-261-3/+4
| | | | Reported by irc user JCount_.
* lavc/utils: Calculate frame duration for little-endian G.726.Carl Eugen Hoyos2017-08-262-2/+2
|
* avcodec/dvbsubdec: Check for duplicate regions in dvbsub_parse_page_segment()Michael Niedermayer2017-08-251-0/+9
| | | | | | | | Fixes: OOM Fixes: 3051/clusterfuzz-testcase-minimized-5745818336231424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: add missing FF_API_DEBUG_MV wrappersJames Almer2017-08-254-1/+10
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: make the avcodec_get_chroma_sub_sample deprecation effectiveJames Almer2017-08-252-15/+7
| | | | Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
* mjpeg: Add support for ICC side dataDerek Buitenhuis2017-08-252-0/+114
| | | | | | | | JPEGs store embedded profiles under the APP2 marker, signified with a "ICC_PROFILE" null-terminated string header, and can be split across multiple APP2 markers, out of order. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/aac: Add floating point 960/120 MDCT windowPaul B Mahol2017-08-246-9/+253
| | | | | Co-Authored-By: Alex Converse <alex.converse@gmail.com> Co-Authored-By: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec/hevc_ps: Check delta_pocs in ff_hevc_decode_short_term_rps()Michael Niedermayer2017-08-241-0/+12
| | | | | | | | Fixes: integer overflow Fixes: 2893/clusterfuzz-testcase-minimized-5809330567774208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/utils: Fix signed integer overflow in rc_initial_buffer_occupancy ↵Vitaly Buka2017-08-231-1/+1
| | | | | | | | | | initialization Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka <vitalybuka@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacdec_template: Fix running cleanup in decode_ics_info()Michael Niedermayer2017-08-221-4/+9
| | | | | | | | | | Fixes: out of array read Fixes: 2873/clusterfuzz-testcase-minimized-5924145713905664 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Previous version reviewed-by: Alex Converse <alex.converse@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pngdec: Fix () placementMichael Niedermayer2017-08-221-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vp9: set color range to MPEG for intraonly profile 0James Zern2017-08-211-1/+1
| | | | | | | | this is undocumented in the vp9 bitstream and decoding specification doc, but matches libvpx Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: James Zern <jzern@google.com>
* avcodec/me_cmp: Fix crashes on ARM due to misalignmentMichael Niedermayer2017-08-214-5/+13
| | | | | | | | Adds a diff_pixels_unaligned() Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872503 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/g726: Add a little-endian G.726 encoder.Carl Eugen Hoyos2017-08-215-11/+88
| | | | Fixes ticket #6596.
* avcodec/pixlet: Fixes: undefined shift in av_mod_uintp2()Michael Niedermayer2017-08-201-1/+1
| | | | | | | | Fixes: runtime error: shift exponent 4294967289 is too large for 32-bit type 'int' Fixes: 3030/clusterfuzz-testcase-minimized-4649809254285312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dirac_dwt_template: Fix integer overflow in vertical_compose53iL0()Michael Niedermayer2017-08-201-1/+1
| | | | | | | | Fixes: runtime error: signed integer overflow: 2147483646 + 2 cannot be represented in type 'int' Fixes: 3013/clusterfuzz-testcase-minimized-4644084197097472 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/vaapi_encode_h264: add "coder" option supportJun Zhao2017-08-201-1/+11
| | | | | | | | | | Follow libx264 style to support "coder" option, and set it to cabac by default. Signed-off-by: Yi A Wang <yi.a.wang@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* vaapi_encode: Move quality option to common codeMark Thompson2017-08-203-23/+43
| | | | | | | | | | | Use AVCodecContext.compression_level rather than a private option, replacing the H.264-specific quality option (which stays only for compatibility). This now works with the H.265 encoder in the i965 driver, as well as the existing cases with the H.264 encoder. (cherry picked from commit 19388a7200e5d99c703271f05dba1c806720e808)
* avcodec/cngdec: Check skip_samplesMichael Niedermayer2017-08-201-0/+6
| | | | | | | | | | | Without this its possible to make the new decode API decode billions of samples out of a empty input and never return to the caller before all samples have been created and discarded. Fixes: Timeout Fixes: 2992/clusterfuzz-testcase-6649611793989632 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
OpenPOWER on IntegriCloud