Re: [FFmpeg-devel] [PATCH 2/2] avcodec/snowdec: Fix integer overflow in decode_subband_slice_buffered()

2017-08-29 Thread Michael Niedermayer
On Mon, Aug 28, 2017 at 01:33:50AM +0200, Michael Niedermayer wrote: > 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 >

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/h264idct_template: Fix integer overflow in ff_h264_idct8_add()

2017-08-29 Thread Michael Niedermayer
On Thu, Aug 17, 2017 at 03:54:57AM +0200, Michael Niedermayer wrote: > 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 >

Re: [FFmpeg-devel] [PATCH 2/3] avformat/mxfenc: Check that the video codec in D-10 is MPEG-2

2017-08-29 Thread Michael Niedermayer
On Tue, Aug 29, 2017 at 10:10:36AM +0200, Matthieu Bouron wrote: > On Tue, Aug 29, 2017 at 02:13:20AM +0200, Michael Niedermayer wrote: > > Others do not work, but nothing rejects them prior to this patch if the > > parameters otherwise match > > > > Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH 2/2] avformat: Handle AV_CODEC_CAP_CHANNEL_CONF when first frame fails to decode

2017-08-29 Thread Alex Converse
Fixes probing the stream from ticket 6398. Noticed by James Almer. --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 23865c88c4..68ba8aa85b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@

[FFmpeg-devel] [PATCH 1/2] avformat/flvdec: Set need_context_update when setting the initial extradata

2017-08-29 Thread Alex Converse
Fixes ticket 6398. Debugged with the help of James Almer and Hendrik Leppkes. --- libavformat/flvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 94c9e28334..2e70352c53 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@

[FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-08-29 Thread Yogender Gupta
Attached is a CUDA version of the thumbnail filter, this helps accelerate thumbnails generations significantly, when using the GPU pipeline. Regards, Yogender --- This email message is for the sole use of the

[FFmpeg-devel] [PATCH] avfilter: remove duplicate and disabled trace log function

2017-08-29 Thread James Almer
It's already defined and actually enabled depending on configure options elsewhere. --- libavfilter/internal.h | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 2ff75aa778..f9679ed1d7 100644 ---

[FFmpeg-devel] [PATCH] avfilter/lavfutils: remove usage of AVStream->codec

2017-08-29 Thread James Almer
Signed-off-by: James Almer --- libavfilter/lavfutils.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 35878b3d50..b6319cf027 100644 --- a/libavfilter/lavfutils.c +++

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/hevc_ps: Fix undefined shift in pcm code

2017-08-29 Thread Michael Niedermayer
On Mon, Aug 28, 2017 at 01:33:49AM +0200, Michael Niedermayer wrote: > 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 >

Re: [FFmpeg-devel] [PATCH v15] avformat/dashdec: add dash demuxer base version

2017-08-29 Thread Liu Steven
> 在 2017年8月30日,上午3:30,samsamsam 写道: > > and think about the safety : > %02c%lld > %s%d%d%d%d > > What? With my solution this is not problem. > Why you think %s%d%d%d%d or %02c%lld give any problem? localhost:dash StevenLiu$ ./ffmpeg -i /tmp/dash.mpd ffmpeg version

Re: [FFmpeg-devel] [PATCH] compat/cuda/ptx2c: strip CR from each line

2017-08-29 Thread Timo Rothenpieler
Am 29.08.2017 um 02:46 schrieb Ricardo Constantino: Windows nvcc + cl.exe produce a .ctx file with CR+LF newlines which need to be stripped to work with gcc. --- compat/cuda/ptx2c.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/cuda/ptx2c.sh

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

2017-08-29 Thread wm4
On Mon, 28 Aug 2017 23:36:08 +0200 Jorge Ramirez wrote: > On 08/28/2017 09:53 PM, wm4 wrote: > > On Mon, 28 Aug 2017 21:24:26 +0200 > > Jorge Ramirez wrote: > > > >> On 08/28/2017 02:16 PM, Jorge Ramirez wrote: > >>> On

Re: [FFmpeg-devel] [PATCH] libavformat/dv : read dv audio as BE

2017-08-29 Thread Александр Слободенюк
sending patch with bumped micro version. > 2017-08-28 18:42 GMT+02:00 Carl Eugen Hoyos : >> 2017-08-28 18:22 GMT+02:00 Александр Слободенюк >> : >>> Fixing the FIXME issue, where BE audio inside the dv codec reads as LE >>> after swapping

[FFmpeg-devel] [PATCH] avformat/dashdec: add dash demuxer base version

2017-08-29 Thread Steven Liu
ffmpeg need a dash demuxer for demux the dash formats base on https://github.com/samsamsam-iptvplayer/exteplayer3/blob/master/tmp/ffmpeg/patches/3.2.2/01_add_dash_demux.patch TODO: 1. support multi bitrate dash v2 fixed: 1. from autodetect to disabled 2. from camelCase code style to ffmpeg

Re: [FFmpeg-devel] [PATCH] avformat/hls: Fix DoS due to infinite loop

2017-08-29 Thread wm4
On Tue, 29 Aug 2017 03:07:45 +0200 Michael Niedermayer wrote: > On Mon, Aug 28, 2017 at 11:21:39AM +0200, wm4 wrote: > > On Sun, 27 Aug 2017 19:16:03 +0200 > > Michael Niedermayer wrote: > > > > > On Sat, Aug 26, 2017 at 01:26:58AM +0200,

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread Michael Niedermayer
On Tue, Aug 29, 2017 at 11:02:32AM +0200, wm4 wrote: > On Tue, 29 Aug 2017 02:13:19 +0200 > Michael Niedermayer wrote: > > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/mxfenc.c | 7 ++- > > 1 file changed, 6 insertions(+), 1

Re: [FFmpeg-devel] [PATCH] libavformat/dv : read dv audio as BE

2017-08-29 Thread Carl Eugen Hoyos
2017-08-29 11:31 GMT+02:00 Александр Слободенюк : > sending patch with bumped micro version. Your patch breaks fate, this has to be fixed in the same commit. Carl Eugen ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread wm4
On Tue, 29 Aug 2017 02:13:19 +0200 Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavformat/mxfenc.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/libavformat/mxfenc.c

[FFmpeg-devel] [PATCH v16] avformat/dashdec: add dash demuxer base version

2017-08-29 Thread Steven Liu
ffmpeg need a dash demuxer for demux the dash formats base on https://github.com/samsamsam-iptvplayer/exteplayer3/blob/master/tmp/ffmpeg/patches/3.2.2/01_add_dash_demux.patch TODO: 1. support multi bitrate dash v2 fixed: 1. from autodetect to disabled 2. from camelCase code style to ffmpeg

[FFmpeg-devel] [PATCH v2] avcodec/arm: Fix SIGBUS on ARM when compiled with binutils 2.29

2017-08-29 Thread James Cowgill
In binutils 2.29, the behavior of the ADR instruction changed so that 1 is added to the address of a Thumb function (previously nothing was added). This allows the loaded address to be passed to a BLX instruction and the correct mode change will occur. So that the behavior matches in binutils

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread Paul B Mahol
On 8/29/17, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavformat/mxfenc.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c > index

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread Michael Niedermayer
On Tue, Aug 29, 2017 at 11:05:25AM +0200, Paul B Mahol wrote: > On 8/29/17, Michael Niedermayer wrote: > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/mxfenc.c | 7 ++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > >

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

2017-08-29 Thread Jorge Ramirez
On 08/29/2017 10:56 AM, wm4 wrote: On Mon, 28 Aug 2017 23:36:08 +0200 Jorge Ramirez wrote: On 08/28/2017 09:53 PM, wm4 wrote: On Mon, 28 Aug 2017 21:24:26 +0200 Jorge Ramirez wrote: On 08/28/2017 02:16 PM, Jorge Ramirez

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread wm4
On Tue, 29 Aug 2017 11:59:05 +0200 Michael Niedermayer wrote: > On Tue, Aug 29, 2017 at 11:02:32AM +0200, wm4 wrote: > > On Tue, 29 Aug 2017 02:13:19 +0200 > > Michael Niedermayer wrote: > > > > > Signed-off-by: Michael Niedermayer

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

2017-08-29 Thread Jorge Ramirez
On 08/29/2017 12:18 AM, Hendrik Leppkes wrote: On Tue, Aug 29, 2017 at 12:07 AM, Jorge Ramirez wrote: On 08/28/2017 11:42 PM, Hendrik Leppkes wrote: On Mon, Aug 28, 2017 at 11:36 PM, Jorge Ramirez wrote: But manually "nesting"

[FFmpeg-devel] [PATCH 3/3] avformat/mxfdec: Fix Sign error in mxf_read_primer_pack()

2017-08-29 Thread Michael Niedermayer
From: 孙浩(晓黑) Fixes: 20170829B.mxf Co-Author: 张洪亮(望初)" Found-by: Xiaohei and Wangchu from Alibaba Security Team Signed-off-by: Michael Niedermayer --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [FFmpeg-devel] [PATCH 3/3] avformat/mxfenc: Replace literal numbers by named enum values.

2017-08-29 Thread Michael Niedermayer
On Tue, Aug 29, 2017 at 02:13:21AM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavformat/mxfenc.c | 83 > ++-- > 1 file changed, 61 insertions(+), 22 deletions(-) applied [...] --

[FFmpeg-devel] [PATCH] avfilter/vf_overlay: Restore shorthand option order

2017-08-29 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/framesync2.c | 6 -- libavfilter/framesync2.h | 6 ++ libavfilter/vf_overlay.c | 8 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/libavfilter/framesync2.c b/libavfilter/framesync2.c

[FFmpeg-devel] [PATCH 1/3] avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop.

2017-08-29 Thread Michael Niedermayer
From: 孙浩(晓黑) <tony...@alibaba-inc.com> Fixes: 20170829.nsv Co-Author: 张洪亮(望初)" <wangchu@alibaba-inc.com> Found-by: Xiaohei and Wangchu from Alibaba Security Team Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> --- libavformat/nsvdec.c | 5 - 1 fil

[FFmpeg-devel] [PATCH 2/3] avformat/mxfdec: Fix DoS issues in mxf_read_index_entry_array()

2017-08-29 Thread Michael Niedermayer
From: 孙浩(晓黑) Fixes: 20170829A.mxf Co-Author: 张洪亮(望初)" Found-by: Xiaohei and Wangchu from Alibaba Security Team Signed-off-by: Michael Niedermayer --- libavformat/mxfdec.c | 4 1 file changed, 4 insertions(+)

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

2017-08-29 Thread wm4
On Tue, 29 Aug 2017 12:03:42 +0200 Jorge Ramirez wrote: > On 08/29/2017 10:56 AM, wm4 wrote: > > On Mon, 28 Aug 2017 23:36:08 +0200 > > Jorge Ramirez wrote: > > > >> On 08/28/2017 09:53 PM, wm4 wrote: > >>> On Mon, 28 Aug 2017

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

2017-08-29 Thread Jorge Ramirez
On 08/29/2017 01:50 PM, wm4 wrote: If you want to support direct FD/dmabuf export, adapting to AVHWFramesContext now would probably be easier in total. Especially because of the implied API change. But I'd wait for Mark Thompson's comments on that before making any big changes. AFAIK he posted a

Re: [FFmpeg-devel] libavcodec/exr : add SSE SIMD for reorder_pixels v2 (WIP)

2017-08-29 Thread Ivan Kalvachev
On 8/26/17, Martin Vignali wrote: > Hello, > > in attach new patch for SSE simd of reorder pixels in exr decoder (use by > zip and rle uncompress), > after comments on the previous patch by Ivan Kalvachev. > > After testing only on a small buffer, i fix the overread

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

2017-08-29 Thread Jorge Ramirez
On 08/29/2017 01:50 PM, wm4 wrote: static void free_v4l2buf_cb(void *opaque, uint8_t *unused) { V4L2Buffer* avbuf = opaque; V4L2m2mContext *s = container_of(avbuf->context, V4L2m2mContext, capture); atomic_fetch_sub_explicit(>refcount, 1, memory_order_acq_rel); if

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

2017-08-29 Thread Jorge Ramirez
On 08/25/2017 05:35 PM, wm4 wrote: +static inline void set_pts(V4L2Buffer *out, int64_t pts) +{ +if (pts == AV_NOPTS_VALUE) { +/* invalid timestamp: not sure how to handle this case */ +out->timestamp.tv_sec = 0; +out->timestamp.tv_usec = 0; +} else { +

[FFmpeg-devel] [PATCH] configure: add support for libnpp* from cuda sdk 9

2017-08-29 Thread Timo Rothenpieler
Signed-off-by: Timo Rothenpieler --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 61d8160491..172ff3fc07 100755 --- a/configure +++ b/configure @@ -5875,7 +5875,9 @@ enabled libmfx&& {

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread Michael Niedermayer
On Tue, Aug 29, 2017 at 12:02:18PM +0200, wm4 wrote: > On Tue, 29 Aug 2017 11:59:05 +0200 > Michael Niedermayer wrote: > > > On Tue, Aug 29, 2017 at 11:02:32AM +0200, wm4 wrote: > > > On Tue, 29 Aug 2017 02:13:19 +0200 > > > Michael Niedermayer

Re: [FFmpeg-devel] [PATCH] libavcodec: fix field_order labelling

2017-08-29 Thread Tobias Rapp
On 27.08.2017 19:13, Marton Balint wrote: On Sat, 12 Aug 2017, Dave Rice wrote: [..] Also utils.c associates these field order values with the following labels: AV_FIELD_TB  -> "top coded first (swapped)"; AV_FIELD_BT -> "bottom coded first (swapped)"; From my reading, I infer that

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

2017-08-29 Thread wm4
On Tue, 29 Aug 2017 15:11:55 +0200 Jorge Ramirez wrote: > On 08/25/2017 05:35 PM, wm4 wrote: > >> +static inline void set_pts(V4L2Buffer *out, int64_t pts) > >> +{ > >> +if (pts == AV_NOPTS_VALUE) { > >> +/* invalid timestamp: not sure how to handle

[FFmpeg-devel] [PATCH v2] ffprobe: use consistent string for unspecified color_range value

2017-08-29 Thread Tobias Rapp
Makes the handling of unspecified/unknown color_range values on stream level consistent to the value used on frame level. Signed-off-by: Tobias Rapp --- ffprobe.c | 8 tests/ref/fate/ffprobe_compact | 4 ++-- tests/ref/fate/ffprobe_csv |

Re: [FFmpeg-devel] [PATCH 13/16] lavfi/vf_psnr: convert to framesync2.

2017-08-29 Thread Paul B Mahol
On 8/10/17, Nicolas George wrote: > Signed-off-by: Nicolas George > --- > libavfilter/Makefile | 2 +- > libavfilter/vf_psnr.c | 50 > +++--- > 2 files changed, 28 insertions(+), 24 deletions(-) > > Now I get

Re: [FFmpeg-devel] [PATCH 13/16] lavfi/vf_psnr: convert to framesync2.

2017-08-29 Thread Nicolas George
Le duodi 12 fructidor, an CCXXV, Paul B Mahol a écrit : > Now I get stupid and useless: > > libavfilter/vf_psnr.c: In function ***do_psnr***: > libavfilter/vf_psnr.c:149:14: warning: ***main*** is usually a function > [-Wmain] > AVFrame *main, *ref; I noticed them; there are a few others.

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfenc: Allow overriding numerical color_siting value.

2017-08-29 Thread wm4
On Tue, 29 Aug 2017 15:02:49 +0200 Michael Niedermayer wrote: > On Tue, Aug 29, 2017 at 12:02:18PM +0200, wm4 wrote: > > On Tue, 29 Aug 2017 11:59:05 +0200 > > Michael Niedermayer wrote: > > > > > On Tue, Aug 29, 2017 at 11:02:32AM +0200, wm4

Re: [FFmpeg-devel] [PATCH v3] fate: add tests for some video source filters

2017-08-29 Thread Tobias Rapp
On 25.07.2017 11:11, Tobias Rapp wrote: Adds FATE tests for the previously untested allrgb, allyuv, rgbtestsrc, smptebars, smptehdbars and yuvtestsrc filters. Also adds a test for testsrc2 filter with rgb+alpha. Signed-off-by: Tobias Rapp ---

Re: [FFmpeg-devel] fate/pixlet : add test for rgb

2017-08-29 Thread Paul B Mahol
On 8/28/17, Martin Vignali wrote: > 2017-04-03 2:21 GMT+02:00 Michael Niedermayer : > >> On Sun, Apr 02, 2017 at 11:29:38PM +0200, Martin Vignali wrote: >> > Hello, >> > >> > In attach patch to add a fate test for pixlet decoder >> > >> > Sample

Re: [FFmpeg-devel] [PATCH] configure: add support for libnpp* from cuda sdk 9

2017-08-29 Thread Ricardo Constantino
On 29 August 2017 at 13:38, Timo Rothenpieler wrote: > Signed-off-by: Timo Rothenpieler > --- > configure | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/configure b/configure > index 61d8160491..172ff3fc07 100755 > ---

[FFmpeg-devel] [PATCH] avformat/mpegts: opus muxing & demuxing expanded

2017-08-29 Thread pkv.stream
Hello again (patch attached this time), this patch expands support for mapping_family 255 (and part of 1) for mpegts muxer and demuxer. (Ambisonics family 2 & 3 not covered). See commit commentary. My case use (as an example) is that I needed to broadcast in mpeg-ts with 16 audio channels

[FFmpeg-devel] [PATCH] avfilter/interlace: prevent over-sharpening with the complex low-pass filter

2017-08-29 Thread Thomas Mundt
Hi, we did a transcoding cascade test at work were over-sharpening became visible with the complex low-pass filter. This patch rectifies the behaviour. Please comment... 0001-avfilter-interlace-prevent-over-sharpening-with-the-.patch Description: Binary data

[FFmpeg-devel] [PATCH v17] avformat/dashdec: add dash demuxer base version

2017-08-29 Thread Steven Liu
ffmpeg need a dash demuxer for demux the dash formats base on https://github.com/samsamsam-iptvplayer/exteplayer3/blob/master/tmp/ffmpeg/patches/3.2.2/01_add_dash_demux.patch TODO: 1. support multi bitrate dash v2 fixed: 1. from autodetect to disabled 2. from camelCase code style to ffmpeg

[FFmpeg-devel] [PATCH] avformat/mpegts: opus muxing & demuxing expanded

2017-08-29 Thread pkv.stream
Hello, this patch expands support for mapping_family 255 (and part of 1) for mpegts muxer and demuxer. (Ambisonics family 2 & 3 not covered). See commit commentary. My case use (as an example) is that I needed to broadcast in mpeg-ts with 16 audio channels coming from SDI, corresponding to

[FFmpeg-devel] [PATCH v17] avformat/dashdec: add dash demuxer base version

2017-08-29 Thread Steven Liu
updated, remove modify of avformat/utils, that is wrong operation ffmpeg need a dash demuxer for demux the dash formats base on https://github.com/samsamsam-iptvplayer/exteplayer3/blob/master/tmp/ffmpeg/patches/3.2.2/01_add_dash_demux.patch TODO: 1. support multi bitrate dash v2 fixed: 1.