[FFmpeg-devel] [PATCH] examples/vaapi_enc: Add a VAAPI encoding example.

2017-07-27 Thread Jun Zhao
From d5414b451012b3a0169740a26f452785eb44cce5 Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Fri, 28 Jul 2017 01:39:27 -0400 Subject: [PATCH] examples/vaapi_enc: Add a VAAPI encoding example. Add a VAAPI encoding example. Use hwupload loading the raw date in HW surface, usage like this: ./vaapi_e

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/dirac_vlc: Fix invalid shift

2017-07-27 Thread Rostislav Pehlivanov
On 28 July 2017 at 02:22, Michael Niedermayer wrote: > Fixes: runtime error: shift exponent 65 is too large for 64-bit type > 'residual' (aka 'unsigned long') > Fixes: 2737/clusterfuzz-testcase-minimized-4968639147016192 > > Found-by: continuous fuzzing process https://github.com/google/oss- > fu

Re: [FFmpeg-devel] [PATCH] avcodec/diracdec: Fix integer overflow in signed multiplication in UNPACK_ARITH()

2017-07-27 Thread Michael Niedermayer
On Wed, Jul 26, 2017 at 09:49:30PM +0200, Michael Niedermayer wrote: > Fixes: runtime error: signed integer overflow: 1073741823 * 4 cannot be > represented in type 'int' > Fixes: 2729/clusterfuzz-testcase-minimized-5902915464069120 > > Found-by: continuous fuzzing process > https://github.com/g

[FFmpeg-devel] [PATCH 1/2] avcodec/dirac_vlc: Fix invalid shift

2017-07-27 Thread Michael Niedermayer
Fixes: runtime error: shift exponent 65 is too large for 64-bit type 'residual' (aka 'unsigned long') Fixes: 2737/clusterfuzz-testcase-minimized-4968639147016192 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH 2/2] avcodec/dirac_dwt: Fix multiple integer overflows in COMPOSE_DD97iH0()

2017-07-27 Thread Michael Niedermayer
Fixes: runtime error: signed integer overflow: 9 * 335544320 cannot be represented in type 'int' Fixes: 2739/clusterfuzz-testcase-minimized-6737297955356672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

Re: [FFmpeg-devel] [PATCH 4/4] libavcodec/dev: v4l2: add support for v4l2 mem2mem codecs

2017-07-27 Thread Michael Niedermayer
On Thu, Jul 27, 2017 at 08:44:37AM +0200, Jorge Ramirez wrote: > On 07/26/2017 04:04 PM, Michael Niedermayer wrote: > >On Mon, Jul 24, 2017 at 09:08:49PM +0200, Jorge Ramirez-Ortiz wrote: > >>From: Alexis Ballier > >> > >>This patchset enhances Alexis Ballier's original patch and validates > >>it

Re: [FFmpeg-devel] [PATCH V3 1/2] avcodec/vorbisenc: Add pre-echo detection

2017-07-27 Thread James Almer
On 7/27/2017 6:22 PM, Tyler Jones wrote: > The encoder will attempt to determine the existence of transient > signals by applying a 4th order highpass filter to remove dominant > low frequency waveforms. Frames are then split up into blocks > where the variance is calculated and compared with block

[FFmpeg-devel] [PATCH 1/2] avcodec/takdec: Fix integer overflow in decode_subframe()

2017-07-27 Thread Michael Niedermayer
Fixes: runtime error: signed integer overflow: -536870912 - 1972191120 cannot be represented in type 'int' Fixes: 2711/clusterfuzz-testcase-minimized-4975142398590976 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nieder

[FFmpeg-devel] [PATCH 2/2] avcodec/diracdec: Fix integer overflow in divide3()

2017-07-27 Thread Michael Niedermayer
Fixes: runtime error: signed integer overflow: -1073746548 * 21845 cannot be represented in type 'int' Fixes: 2729/clusterfuzz-testcase-minimized-5902915464069120 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermaye

Re: [FFmpeg-devel] [PATCH] avcodec/pixlet: Simplify nbits computation

2017-07-27 Thread Michael Niedermayer
On Thu, Jul 27, 2017 at 03:44:46PM +0200, Paul B Mahol wrote: > On 7/27/17, Michael Niedermayer wrote: > > Fixes multiple integer overflows > > Fixes: runtime error: signed integer overflow: 1 + 2147483647 cannot be > > represented in type 'int' > > > > Found-by: continuous fuzzing process > > htt

Re: [FFmpeg-devel] [PATCH] pthread_frame: revert 2e664b9c1e73c80aab91070c1eb7676f04bdd12d.

2017-07-27 Thread Ronald S. Bultje
Hi, On Tue, Jul 18, 2017 at 12:11 PM, Wan-Teh Chang < wtc-at-google@ffmpeg.org> wrote: > The patch does not fix the tsan warning it was intended to fix. > Reverting the patch moves the av_log() back to the outside of the lock. > > Signed-off-by: Wan-Teh Chang > --- > libavcodec/pthread_fram

[FFmpeg-devel] [PATCH V3 2/2] avcodec/vorbisenc: Apply dynamic frame lengths

2017-07-27 Thread Tyler Jones
Additional codebooks are added for shorter 128-sample frames. Changes in codeword generation are made to handle valid values of 0 that prepend some codebooks, otherwise books are classified incorrectly and cause unreadable streams. A second residue, floor, and mapping is created for short window l

[FFmpeg-devel] [PATCH V3 1/2] avcodec/vorbisenc: Add pre-echo detection

2017-07-27 Thread Tyler Jones
The encoder will attempt to determine the existence of transient signals by applying a 4th order highpass filter to remove dominant low frequency waveforms. Frames are then split up into blocks where the variance is calculated and compared with blocks from the previous frame. A preecho is only like

Re: [FFmpeg-devel] [PATCH] avcodec/h264_slice: don't sync default_ref[] between threads.

2017-07-27 Thread Ronald S. Bultje
Hi, On Tue, Jul 18, 2017 at 7:34 PM, Wan-Teh Chang wrote: > default_ref[] is unconditionally initialized in h264_initialise_ref_list() > (called from ff_h264_build_ref_list(), called from h264_slice_init()). > > This fixes the following tsan warning when running fate-h264: > > WARNING: ThreadSan

Re: [FFmpeg-devel] [PATCH] Add FITS Encoder

2017-07-27 Thread Paras Chadha
On Fri, Jul 21, 2017 at 7:59 PM, Nicolas George wrote: > Le tridi 3 thermidor, an CCXXV, Paras Chadha a écrit : > > > > AVOutputFormat ff_image2pipe_muxer = { > > > > .name = "image2pipe", > > > > .long_name = NULL_IF_CONFIG_SMALL("piped image2 sequence"), > > > > +.

Re: [FFmpeg-devel] [PATCH] Add FITS Encoder

2017-07-27 Thread Paras Chadha
On Mon, Jul 24, 2017 at 3:42 AM, Carl Eugen Hoyos wrote: > 2017-07-21 20:16 GMT+02:00 Reimar Döffinger : > > On 21.07.2017, at 16:26, Paras Chadha wrote: > > > >> On Fri, Jul 21, 2017 at 3:27 AM, Carl Eugen Hoyos > >> wrote: > >> > >>> 2017-07-20 21:46 GMT+02:00 Paras Chadha : > >>> > +

[FFmpeg-devel] [PATCH] Add FITS Demuxer

2017-07-27 Thread Paras Chadha
Signed-off-by: Paras Chadha --- Made all the changes suggested. libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/fitsdec.c| 236 +++ libavformat/version.h| 2 +- 4 files changed, 239 insertions(+), 1 deletion(-

[FFmpeg-devel] [PATCH] Add FITS Decoder

2017-07-27 Thread Paras Chadha
Signed-off-by: Paras Chadha --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 + libavcodec/fits.h | 79 +++ libavcodec/fitsdec.c| 55

[FFmpeg-devel] [PATCH] libavformat/mov: Fix inserting frames before current_frame.

2017-07-27 Thread Jacob Trimble
When using streaming input, it may be possible to see frames that appear before the current_frame. When these frames are inserted into the index, the current_frame needs to be updated so it is still pointing at the same frame. Signed-off-by: Jacob Trimble --- libavformat/mov.c | 12 +---

Re: [FFmpeg-devel] [PATCH] Fix static linking openssl library

2017-07-27 Thread Alexandr Topilski
That's all what puppies can do, good work, please close issue! I will patch build by hands for raspberry. On Thu, Jul 6, 2017 at 3:25 PM, Alexandr Topilski wrote: > Ping > > On Fri, Jun 23, 2017 at 10:26 AM, Alexandr Topilski > wrote: > >> Hi, thank you for reply but output of pkg-config --stat

Re: [FFmpeg-devel] [PATCH] avcodec/pixlet: Simplify nbits computation

2017-07-27 Thread Paul B Mahol
On 7/27/17, Michael Niedermayer wrote: > Fixes multiple integer overflows > Fixes: runtime error: signed integer overflow: 1 + 2147483647 cannot be > represented in type 'int' > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by:

Re: [FFmpeg-devel] [PATCH 01/10] lavfi/vf_threshold: move to activate design.

2017-07-27 Thread Paul B Mahol
On 7/17/17, Nicolas George wrote: > Also fix missing dependency. > > Signed-off-by: Nicolas George > --- > libavfilter/Makefile | 2 +- > libavfilter/vf_threshold.c | 34 -- > 2 files changed, 13 insertions(+), 23 deletions(-) > > > For all this series: the

Re: [FFmpeg-devel] [PATCH] libavformat/mov: Fix inserting frames before current_frame

2017-07-27 Thread Moritz Barsnick
On Wed, Jul 26, 2017 at 15:37:16 -0700, Jacob Trimble wrote: > av_log(c->fc, AV_LOG_ERROR, "Failed to add index entry\n"); > +} else if (err <= sc->current_sample && err + 1 != > st->nb_index_entries && > +st->nb_index_entries != old_nb_index_entries) { Your mailer

Re: [FFmpeg-devel] [PATCH]v6 Opus Pyramid Vector Quantization Search in x86 SIMD asm

2017-07-27 Thread Ivan Kalvachev
On 7/27/17, Rostislav Pehlivanov wrote: > On 27 July 2017 at 09:38, Ivan Kalvachev wrote: > >> On 7/27/17, Rostislav Pehlivanov wrote: >> > On 26 July 2017 at 15:56, Ivan Kalvachev wrote: >> > >> >> +if (ARCH_X86 && CONFIG_OPUS_ENCODER) >> >> +ff_opus_dsp_init_x86(s); >> >> >> > >>

[FFmpeg-devel] [PATCH v2] doc/libav-merge: remove the hls merge TODO

2017-07-27 Thread Steven Liu
This TODO is done. See 5caaa3a49e76b084ff8a9840d541bad64d96d7f7 Signed-off-by: Steven Liu --- doc/libav-merge.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/libav-merge.txt b/doc/libav-merge.txt index 690c4ef97f..96b008b71b 100644 --- a/doc/libav-merge.txt +++ b/doc/libav-merge.txt @

Re: [FFmpeg-devel] [PATCH]v6 Opus Pyramid Vector Quantization Search in x86 SIMD asm

2017-07-27 Thread Rostislav Pehlivanov
On 27 July 2017 at 09:38, Ivan Kalvachev wrote: > On 7/27/17, Rostislav Pehlivanov wrote: > > On 26 July 2017 at 15:56, Ivan Kalvachev wrote: > > > >> +if (ARCH_X86 && CONFIG_OPUS_ENCODER) > >> +ff_opus_dsp_init_x86(s); > >> > > > > Just change it to > > +if (ARCH_X86) > > > > T

Re: [FFmpeg-devel] [PATCH]v6 Opus Pyramid Vector Quantization Search in x86 SIMD asm

2017-07-27 Thread Ivan Kalvachev
On 7/27/17, Rostislav Pehlivanov wrote: > On 26 July 2017 at 15:56, Ivan Kalvachev wrote: > >> +if (ARCH_X86 && CONFIG_OPUS_ENCODER) >> +ff_opus_dsp_init_x86(s); >> > > Just change it to > +if (ARCH_X86) > > The init function is named opus_dsp, so it'll get used to other opus > th

Re: [FFmpeg-devel] [PATCH] fate: update pixfmt_best test to check for endianness

2017-07-27 Thread Tobias Rapp
On 26.07.2017 17:05, Michael Niedermayer wrote: On Wed, Jul 26, 2017 at 03:58:54PM +0200, Tobias Rapp wrote: Signed-off-by: Tobias Rapp --- libavutil/tests/pixfmt_best.c | 14 ++ tests/ref/fate/pixfmt_best| 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) LGTM thx A