summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec/avpacket: deprecate av_copy_packet()James Almer2017-09-25
| | | | | | It does the same thing as av_packet_ref(). Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/interlace: rename two variables for consistencyThomas Mundt2017-09-25
| | | | Signed-off-by: Thomas Mundt <tmundt75@gmail.com>
* avfilter/af_headphone: increase max ir lengthPaul B Mahol2017-09-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* fate/fits: add missing png & gif dependenciesParas Chadha2017-09-24
| | | | | Signed-off-by: Paras Chadha <paraschadha18@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/hapdec : add support HapAlphaOnlyMartin Vignali2017-09-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat : add mov dataformat tag for HapAlphaOnly and HapQAlphaMartin Vignali2017-09-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/takdec: Fix integer overflow in decode_lpc()Michael Niedermayer2017-09-24
| | | | | | | | Fixes: runtime error: signed integer overflow: 16748560 + 2143729712 cannot be represented in type 'int' Fixes: 3202/clusterfuzz-testcase-minimized-4988291642294272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/proresdec2: Check bits in DECODE_CODEWORD(), fixes invalid shiftMichael Niedermayer2017-09-24
| | | | | | | | Fixes: runtime error: shift exponent 42 is too large for 32-bit type 'unsigned int' Fixes: 3410/clusterfuzz-testcase-minimized-5313377960198144 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/takdec: Fix integer overflows in decode_subframe()Michael Niedermayer2017-09-24
| | | | | | | | Fixes: runtime error: signed integer overflow: -1562477869 + -691460395 cannot be represented in type 'int' Fixes: 3196/clusterfuzz-testcase-minimized-4528307146063872 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/libopenmpt: Query duration and metadata after selecting subsongJörn Heusipp2017-09-24
| | | | | | | | | | | | | | Duration depends on the selected subsong and thus must be queried after selecting the subsong. There is no compelling reason to query other metadata earlier either. Tested with libopenmpt version: 0.2.8760-beta27 Libopenmpt configure options: --without-ogg --without-vorbis --without-vorbisfile --without-portaudio --without-portaudiocpp --without-mpg123 --without-pulseaudio --without-sndfile --without-flac Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de> Signed-off-by: Josh de Kock <josh@itanimul.li>
* avcodec/mips: Improve avc chroma horiz mc msa functionsKaustubh Raste2017-09-24
| | | | | | | | Replace generic with block size specific function. 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/mips: Unrolled loops avc intra msa functionsKaustubh Raste2017-09-24
| | | | | | 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/mips: Improve hevc uni-w copy mc msa functionsKaustubh Raste2017-09-24
| | | | | | | | | | Load the specific destination bytes instead of MSA load and pack. Pack the data to half word before clipping. Use immediate unsigned saturation for clip to max saving one vector register. 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/flacenc: Replace "return -1" by named constantMichael Niedermayer2017-09-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/snowenc: Replace "return -1" by named constantsMichael Niedermayer2017-09-24
| | | | | Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavdevice/v4l2: fix invalid access to struct v4l2_bufferJaroslav Beran2017-09-24
| | | | | | | | In case we are short of queued buffers, at first v4l2_buffer was enqueued to kernel so it's not owned by user-space anymore. After that it's timestamp field was read, but it might be overwritten by driver at that moment. It resulted in invalid timestamp sometimes. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffplay: zero initialize copy avpacketJames Almer2017-09-23
| | | | | | Prevents potential use of uninitialized stack. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mpeg: zero initialize idx_pktJames Almer2017-09-23
| | | | | | Prevents use of uninitialized stack. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/v4l2_m2m: add missing header inclusionsJames Almer2017-09-23
| | | | | | Should fix checkheaders on systems where v4l2_m2m is enabled. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/Makefile: skip v4l2_m2m headers if neededJames Almer2017-09-23
| | | | | | Fixes checkheaders on systems where v4l2_m2m is unavailable. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/frame_thread_encoder: use av_packet_alloc()James Almer2017-09-23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/interlace: add support for 10 and 12 bitThomas Mundt2017-09-23
| | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Thomas Mundt <tmundt75@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/tinterlace: use drawutils for pad modeThomas Mundt2017-09-23
| | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Thomas Mundt <tmundt75@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mxfdec: use the common packet pts setter function for opatom filesMarton Balint2017-09-23
| | | | | | Fixes ticket #6631. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: factorize packet pts setter functionMarton Balint2017-09-23
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/opusenc_psy: use av_clip_uintp2()James Almer2017-09-23
| | | | | | Fixes fate-source. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/opusenc_utils: add missing preprocessor guardsJames Almer2017-09-23
| | | | | | Fixes fate-source. Signed-off-by: James Almer <jamrial@gmail.com>
* lavfi: make window_func an inline functionRostislav Pehlivanov2017-09-23
| | | | | | | Eliminate lavc->lavfi dependency. The function isn't big and doesn't deserve its own file. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* opusenc: implement a psychoacoustic systemRostislav Pehlivanov2017-09-23
| | | | | | | | | | | | | | This commit implements a psychoacoustic system for the native Opus encoder. Its unlike any other psychoacoustic system known since its capable of using a lookahead to make better choices on how to treat the current frame and how many bits to allocate for it (and future frames). Also, whilst the main bulk of the analysis function has to run in a single thread, the per-frame anaylsis functions does not modify the main psychoacoustic context, so in the future it will be fairly trivial to run those as slice threads. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* libavcodec: v4l2: add support for v4l2 mem2mem codecsJorge Ramirez-Ortiz2017-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patchset enhances Alexis Ballier's original patch and validates it using Qualcomm's Venus hardware (driver recently landed upstream [1]). This has been tested on Qualcomm's DragonBoard 410c and 820c Configure/make scripts have been validated on Ubuntu 10.04 and 16.04. Tested decoders: - h264 - h263 - mpeg4 - vp8 - vp9 - hevc Tested encoders: - h264 - h263 - mpeg4 Tested transcoding (concurrent encoding/decoding) Some of the changes introduced: - v4l2: code cleanup and abstractions added - v4l2: follow the new encode/decode api. - v4l2: fix display size for NV12 output pool. - v4l2: handle EOS (EPIPE and draining) - v4l2: vp8 and mpeg4 decoding and encoding. - v4l2: hevc and vp9 support. - v4l2: generate EOF on dequeue errors. - v4l2: h264_mp4toannexb filtering. - v4l2: fixed make install and fate issues. - v4l2: codecs enabled/disabled depending on pixfmt defined - v4l2: pass timebase/framerate to the context - v4l2: runtime decoder reconfiguration. - v4l2: add more frame information - v4l2: free hardware resources on last reference being released - v4l2: encoding: disable b-frames for upstreaming (patch required) [1] https://lwn.net/Articles/697956/ System Level view: v42l_m2m_enc/dec --> v4l2_m2m --> v4l2_context --> v4l2_buffers Reviewed-by: Jorge Ramirez <jorge.ramirez-ortiz@linaro.org> Reviewed-by: Alexis Ballier <aballier@gentoo.org> Tested-by: Jorge Ramirez <jorge.ramirez-ortiz@linaro.org> Signed-off-by: wm4 <nfxjfg@googlemail.com>
* avformat/gif: use av_packet_alloc()James Almer2017-09-23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/apngenc: use av_packet_alloc()James Almer2017-09-23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dirac_dwt: Fix integer overflow in COMPOSE_FIDELITYi*()Michael Niedermayer2017-09-22
| | | | | | | | | Fixes: runtime error: signed integer overflow: 161 * 13872281 cannot be represented in type 'int' Fixes: 3295/clusterfuzz-testcase-minimized-4738998142500864 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ffv1dec: Fix integer overflow in read_quant_table()Michael Niedermayer2017-09-22
| | | | | | | | Fixes: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' Fixes: 3361/clusterfuzz-testcase-minimized-5065842955911168 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/svq3: Fix overflow in svq3_add_idct_c()Michael Niedermayer2017-09-22
| | | | | | | | Fixes: runtime error: signed integer overflow: 2147392585 + 524288 cannot be represented in type 'int' Fixes: 3348/clusterfuzz-testcase-minimized-4809500517203968 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mips: Remove generic func use in hevc non-uni copy mc msa functionsKaustubh Raste2017-09-22
| | | | | | 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/mips: preload data in hevc sao edge 90 degree filter msa functionsKaustubh Raste2017-09-22
| | | | | | 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>
* avfilter/thumbnail_cuda: add cuda thumbnail filterYogender Gupta2017-09-22
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* Fix several typosLou Logan2017-09-21
| | | | | | | "apix_fmts" found by Marc Péchaud. "speedloss" found by Mikhail V. Signed-off-by: Lou Logan <lou@lrcd.com>
* Remove some unneeded casts of bit_rate.Carl Eugen Hoyos2017-09-22
|
* avformat/hlsenc: support http method for hls fmp4 init fileSteven Liu2017-09-21
| | | | Signed-off-by: Steven Liu <lq@onvideo.cn>
* MAINTAINERS: modify the hlsenc descriptionSteven Liu2017-09-21
| | | | | | | | change the hlsenc from hls encryption to hlsenc Suggested-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Steven Liu <lq@onvideo.cn>
* avformat/hlsenc: fix CID 1418106Steven Liu2017-09-21
| | | | | | fix the "Uninitialized scalar variable (UNINIT)" problem. Signed-off-by: Steven Liu <lq@onvideo.cn>
* pixdesc: Add API to map color property names to enum valuesVittorio Giovara2017-09-21
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avcodec/mips: Reduced conditional cases in avc inter lpf msa functionsKaustubh Raste2017-09-21
| | | | | | 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/mips: Unrolled loops and expanded functions in avc put mc 10 & 30 ↵Kaustubh Raste2017-09-21
| | | | | | | | msa functions 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>
* GnuTLS: eat PREMATURE_TERMINATION errorTatsuyuki Ishi2017-09-21
| | | | | | | | | | | GnuTLS is too strict on the SSL shutdown alert, and it's neither mandatory in the spec or critical. As it's ignored in OpenSSL, we should also suppress it in GnuTLS as well. Ticket: #6667 Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/cafdec: reject multichannel Opus streamsAnton Khirnov2017-09-19
| | | | | | Multichannel Opus streams require channel mapping information in extradata. Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/caf: Support demuxing Opus.Carl Eugen Hoyos2017-09-20
| | | | Introduced in macOS High Sierra and iOS 11.
* avcodec/mips: preload data in hevc sao edge 0 degree filter msa functionsKaustubh Raste2017-09-20
| | | | | | 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>