[FFmpeg-devel] [PATCH 2/2] lavf/vf_vpp_qsv: add support for QSV transpose filter

2019-06-17 Thread Linjie Fu
Add transpose support for qsv_vpp with rotate and hflip: - rotate: [0, 3] support clockwise rotation of 0, 90, 180, 270; - hflip: [0, 1] support horizontal flip; Configure with: {"cclock_hflip","clock","cclock","clock_hflip","reversal","hflip","vflip"} Limitation: If pipeline contain

[FFmpeg-devel] [PATCH, v4 1/2] lavf/qsvvpp:allocate continuous memory

2019-06-17 Thread Linjie Fu
Mediasdk calls CMRT to copy from video to system memory and requires memory to be continuously allocated across Y and UV. Add a new path to allocate continuous memory when using system out. Use get_continuous_buffer to arrange data according to pixfmt. Signed-off-by: Linjie Fu --- libavfilter/q

Re: [FFmpeg-devel] [PATCH] av_format/hlsenc: fix %v handling by format_name function

2019-06-17 Thread Steven Liu
Bodecs Bela 于2019年6月18日周二 上午5:57写道: > > Hi All, > > When multiple variant streams are specified by var_stream_map option, %v > placeholder in various names ensures that each variant has its unique > names. Most of %v handlng is done in format_name function. Currently > in this function the result

Re: [FFmpeg-devel] [PATCH] dash: change default MP4 extension to .m4s

2019-06-17 Thread Steven Liu
Alfred E. Heggestad 于2019年6月17日周一 下午4:02写道: > > From 923da82598bddd1ed05750427dbc71e607d296a2 Mon Sep 17 00:00:00 2001 > From: "Alfred E. Heggestad" > Date: Mon, 17 Jun 2019 09:59:04 +0200 > Subject: [PATCH] dash: change default MP4 extension to .m4s > > this was changed in commit 281a21ed50849e

Re: [FFmpeg-devel] [PATCH] avformat/oggdec: only parse headers before data

2019-06-17 Thread Chris Cunningham
+James On Mon, Jun 17, 2019 at 6:31 PM Chris Cunningham wrote: > This behavior was added in 2010 to suport some old (and invalid) ogm > files. > https://github.com/FFmpeg/FFmpeg/commit/81b743eb1026547270b88ac6a5cb451a3907ee94 > > But this makes it possible to change the codec in the later header

Re: [FFmpeg-devel] [PATCH] avformat/oggparseogm: unknown codec triggers error

2019-06-17 Thread Chris Cunningham
New patch implements the other half of James suggestion (stop parsing headers after data) and does not include the AVERROR_INVALIDDATA returns. http://ffmpeg.org/pipermail/ffmpeg-devel/2019-June/245502.html On Sun, Jun 16, 2019 at 6:16 AM Reimar Döffinger wrote: > On 14.06.2019, at 17:01, James

[FFmpeg-devel] [PATCH] avformat/oggdec: only parse headers before data

2019-06-17 Thread Chris Cunningham
This behavior was added in 2010 to suport some old (and invalid) ogm files. https://github.com/FFmpeg/FFmpeg/commit/81b743eb1026547270b88ac6a5cb451a3907ee94 But this makes it possible to change the codec in the later headers, causing codec to be out of sync with internal avctx (eventually trigger

Re: [FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-17 Thread Jun Li
On Sat, Jun 15, 2019 at 7:09 PM Jun Li wrote: > > > On Tue, Jun 11, 2019 at 7:05 PM Jun Li wrote: > >> >> On Sun, Jun 9, 2019 at 2:28 PM Jun Li wrote: >> >>> Add exif orientation support and expose an option. >>> --- >>> libavfilter/hflip.h| 2 + >>> libavfilter/transpose.h| 14

Re: [FFmpeg-devel] [PATCH] avformat/aviobuf: Delay buffer downsizing until asserts are met

2019-06-17 Thread Andreas Rheinhardt
Michael Niedermayer: > Fixes: Assertion failure > Fixes: > 15151/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5757079496687616 > > Signed-off-by: Michael Niedermayer > --- > libavformat/aviobuf.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libavformat/avi

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/hevc_ps: Fix integer overflow with num_tile_rows

2019-06-17 Thread James Almer
On 6/17/2019 6:54 PM, Michael Niedermayer wrote: > On Sun, Jun 16, 2019 at 11:10:43PM -0300, James Almer wrote: >> On 6/13/2019 3:32 PM, Michael Niedermayer wrote: >>> Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in >>> type 'int' >>> Fixes: >>> 14880/clusterfuzz-testcase

[FFmpeg-devel] [PATCH] av_format/hlsenc: fix %v handling by format_name function

2019-06-17 Thread Bodecs Bela
Hi All, When multiple variant streams are specified by var_stream_map option, %v placeholder in various names ensures that each variant has its unique names. Most of %v handlng is done in format_name function. Currently in this function the result buffer is the same as the input pattern buffer, s

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/hevc_ps: Fix integer overflow with num_tile_rows

2019-06-17 Thread Michael Niedermayer
On Sun, Jun 16, 2019 at 11:10:43PM -0300, James Almer wrote: > On 6/13/2019 3:32 PM, Michael Niedermayer wrote: > > Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in > > type 'int' > > Fixes: > > 14880/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5130977304

Re: [FFmpeg-devel] [PATCH v2 1/2] libavformat/utils: Interpolate missing timestamps in H264 and HEVC when no b-frames observed

2019-06-17 Thread Michael Niedermayer
On Sun, Jun 16, 2019 at 01:09:45AM -0400, Andriy Gelman wrote: > Michael, > > On Thu, 16. May 00:43, Michael Niedermayer wrote: > > On Tue, May 14, 2019 at 05:54:21PM -0400, Andriy Gelman wrote: > > > From: Andriy Gelman > > > > > > Fixes Ticket #7895. > > > > > > Currently, timestamp interpol

[FFmpeg-devel] [PATCH 3/3] avcodec/libvorbisdec: Check extradata size

2019-06-17 Thread Michael Niedermayer
Fixes: out of array read Fixes: 15261/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBVORBIS_fuzzer-5764908467093504 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/libvorbisdec.c | 8 +++

[FFmpeg-devel] [PATCH 2/3] avcodec/m101: Fix off be 2 error

2019-06-17 Thread Michael Niedermayer
Fixes: out of array read Fixes: 15263/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_M101_fuzzer-5728999453491200 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/m101.c | 2 +- 1 file chang

[FFmpeg-devel] [PATCH 1/3] avcodec/qdm2: Move fft_order check up

2019-06-17 Thread Michael Niedermayer
This avoids undefined computations with unchecked values Fixes: shift exponent -21 is negative Fixes: 15262/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDM2_fuzzer-5651261753393152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-o

Re: [FFmpeg-devel] [PATCH 10/18] cbs: Remove superfluous checks for ff_cbs_delete_unit

2019-06-17 Thread Andreas Rheinhardt
James Almer: > On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: >> ff_cbs_delete_unit never fails if the index of the unit to delete is >> valid; document this behaviour explicitly and remove the checks for >> whether ff_cbs_delete_unit failed, because all the callers of >> ff_cbs_delete_unit alrea

Re: [FFmpeg-devel] [PATCH 01/18] cbs: Allow non-blank packets in ff_cbs_write_packet

2019-06-17 Thread James Almer
On 6/17/2019 11:34 AM, Andreas Rheinhardt wrote: > James Almer: >> On 6/17/2019 9:44 AM, James Almer wrote: >>> On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: Up until now, ff_cbs_write_packet always initialized the packet structure it received without documenting this behaviour; furthe

Re: [FFmpeg-devel] [PATCH 01/18] cbs: Allow non-blank packets in ff_cbs_write_packet

2019-06-17 Thread Andreas Rheinhardt
James Almer: > On 6/17/2019 9:44 AM, James Almer wrote: >> On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: >>> Up until now, ff_cbs_write_packet always initialized the packet >>> structure it received without documenting this behaviour; furthermore, >>> the packet's buffer would (on success) be ov

Re: [FFmpeg-devel] [PATCH 11/18] cbs_h264, h264_metadata: Deleting SEI messages never fails

2019-06-17 Thread James Almer
On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: > Deleting a unit from a fragment in CBS only fails if there is no unit > in the fragment corresponding to the position given as argument to > ff_cbs_delete_unit. Given that ff_cbs_h264_delete_sei_message asserts > this to be so, we know that the cal

Re: [FFmpeg-devel] [PATCH v2] avfilter/avf_aphasemeter: Add out-of-phase and mono detection

2019-06-17 Thread Romane Lafon
Hello, Thank you for your feedback. I made a third version of my patch. Regards, Romane Le lun. 27 mai 2019 à 21:07, Moritz Barsnick a écrit : > On Mon, May 20, 2019 at 14:40:24 +0200, Romane Lafon wrote: > > +float tolerance = 1.0 - s->tolerance; > > Strictly speaking 1.0f (or 1.f). > > > +

[FFmpeg-devel] [PATCH v3] avfilter/avf_aphasemeter: Add out-of-phase and mono detection

2019-06-17 Thread Romane Lafon
New version of the patch that extends aphasemeter filter. It allows to get metadata for out-of-phase or mono sequences of stereo streams. It displays start, end and duration as for silencedetect filter. From 8eacd044bb4c69553e25fbd08c3be07c00af5be0 Mon Sep 17 00:00:00 2001 From: Romane Lafon Date:

Re: [FFmpeg-devel] [PATCH 10/18] cbs: Remove superfluous checks for ff_cbs_delete_unit

2019-06-17 Thread James Almer
On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: > ff_cbs_delete_unit never fails if the index of the unit to delete is > valid; document this behaviour explicitly and remove the checks for > whether ff_cbs_delete_unit failed, because all the callers of > ff_cbs_delete_unit already make sure that t

Re: [FFmpeg-devel] [PATCH 01/18] cbs: Allow non-blank packets in ff_cbs_write_packet

2019-06-17 Thread James Almer
On 6/17/2019 9:44 AM, James Almer wrote: > On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: >> Up until now, ff_cbs_write_packet always initialized the packet >> structure it received without documenting this behaviour; furthermore, >> the packet's buffer would (on success) be overwritten with the

Re: [FFmpeg-devel] [PATCH 01/18] cbs: Allow non-blank packets in ff_cbs_write_packet

2019-06-17 Thread James Almer
On 6/17/2019 12:42 AM, Andreas Rheinhardt wrote: > Up until now, ff_cbs_write_packet always initialized the packet > structure it received without documenting this behaviour; furthermore, > the packet's buffer would (on success) be overwritten with the new > buffer without unreferencing the old. Th

Re: [FFmpeg-devel] [PATCH] movenc: calculate track_duration without packet duration

2019-06-17 Thread Gyan
On 17-06-2019 01:37 PM, Alfred E. Heggestad wrote: From c69b63a7af5531257753754e64ac33b7ef530e75 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Mon, 17 Jun 2019 10:04:08 +0200 Subject: [PATCH] movenc: calculate track_duration without packet duration ---  libavformat/movenc.c | 2 +

[FFmpeg-devel] [PATCH] libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn

2019-06-17 Thread Guo, Yejun
it is expected that there will be more files to support native mode, so put all the dnn codes under libavfilter/dnn The main change of this patch is to move the file location, see below: modified: libavfilter/Makefile new file: libavfilter/dnn/Makefile renamed:libavfilter/dnn_backend_nativ

Re: [FFmpeg-devel] [PATCH 2/3] lavf/webm_chunk: Fix NULL dereference

2019-06-17 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Andreas Rheinhardt: >> Andreas Rheinhardt: >>> The earlier version of the webm_chunk muxer had several bugs: >>> >>> 1. If the first packet of an audio stream didn't have a PTS of zero, >>> then no chunk will be started before a packet is delivered to the >>> underlying Matros

[FFmpeg-devel] [PATCH] movenc: calculate track_duration without packet duration

2019-06-17 Thread Alfred E. Heggestad
From c69b63a7af5531257753754e64ac33b7ef530e75 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Mon, 17 Jun 2019 10:04:08 +0200 Subject: [PATCH] movenc: calculate track_duration without packet duration --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [FFmpeg-devel] [PATCH v6] avformat/ifv: added support for ifv cctv files

2019-06-17 Thread Peter Ross
On Sun, Jun 16, 2019 at 07:19:54PM +0530, Swaraj Hota wrote: > On Sun, Jun 16, 2019 at 2:12 PM Paul B Mahol wrote: > > > On 6/16/19, Swaraj Hota wrote: > > > On Sun 16 Jun, 2019, 8:24 AM Peter Ross, wrote: > > > > > >> On Mon, Jun 10, 2019 at 09:25:27AM +0530, Swaraj Hota wrote: > > >> > Fixes

[FFmpeg-devel] [PATCH] dash: change default MP4 extension to .m4s

2019-06-17 Thread Alfred E. Heggestad
From 923da82598bddd1ed05750427dbc71e607d296a2 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Mon, 17 Jun 2019 09:59:04 +0200 Subject: [PATCH] dash: change default MP4 extension to .m4s this was changed in commit 281a21ed50849e3c8c0d03005230e9fd07c24370 --- libavformat/dashenc.c | 2

Re: [FFmpeg-devel] [PATCH] avformat/segment: fix increment_tc

2019-06-17 Thread Gyan
On 15-06-2019 04:57 PM, Gyan wrote: On 14-06-2019 10:45 PM, Gyan wrote: Fixes an issue brought to my attention at Super User. v2 fixes inadvertent stream TC creation when non existed. Plan to push tomorrow. Gyan ___ ffmpeg-devel mailing list