Re: [FFmpeg-devel] [PATCH] avcodec: add setts bitstream filter

2021-02-12 Thread Paul B Mahol
Will apply if nobody have comments. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 4/4] avformat/r3d: Check samples before computing duration

2021-02-12 Thread Michael Niedermayer
On Thu, Feb 11, 2021 at 10:28:36PM +0100, Paul B Mahol wrote: > lgtm will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship: All citizens are under surveillance, all their steps and actions recorded, for the politicians to enforce control.

Re: [FFmpeg-devel] [PATCH 1/3] avformat/electronicarts: Clear partial_packet on error

2021-02-12 Thread Michael Niedermayer
On Thu, Feb 11, 2021 at 11:41:04PM +0100, Paul B Mahol wrote: > lgtm will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is dangerous to be right in matters on which the established authorities are wrong. -- Voltaire signature.asc Description: P

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodecdec: Do not abort when H264/HEVC extradata extraction fails

2021-02-12 Thread Matthieu Bouron
On Mon, Jan 25, 2021 at 06:38:36PM +0100, sfan5 wrote: > Although rare, extradata can be present but empty and extraction will fail. > However Android also supports passing codec-specific data inline and > will likely play such a stream anyway. So there's no reason to abort > initialization before

Re: [FFmpeg-devel] [PATCH v3] avformat/concatdec: add support for setting input options

2021-02-12 Thread Nicolas George
Jan Ekström (12021-02-10): > > No! Why would you do that? It adds one level of escaping, we already > > have way too much of them. > > Because: > 1. we have the functionality for it > 2. it matches the AVOption. > > Please do not take it as if I did not have any logic behind my actions > whatsoev

[FFmpeg-devel] [PATCH] arm/aarch64: Use mach_absolute_time as timer on apple platforms

2021-02-12 Thread Martin Storsjö
This is much less precise than the cycle counter register, but the cycle counter register is not available on apple platforms (and on linux, it requires a kernel module for allowing user mode access). --- libavutil/aarch64/timer.h | 8 +++- libavutil/arm/timer.h | 8 +++- 2 files chang

Re: [FFmpeg-devel] [PATCH 1/3] avformat/electronicarts: Clear partial_packet on error

2021-02-12 Thread Andreas Rheinhardt
Michael Niedermayer: > Fixes: Infinite loop > Fixes: > 30165/clusterfuzz-testcase-minimized-ffmpeg_dem_EA_fuzzer-6224642371092480 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavformat/e

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mux: return a pointer to the packet in ff_interleaved_peek()

2021-02-12 Thread James Almer
On 2/8/2021 7:21 PM, James Almer wrote: And make it const, so the caller doesn't attempt to change it. ff_get_muxer_ts_offset() should be used to get the muxer timestamp offset. Signed-off-by: James Almer --- Went with Andreas' idea, but splitting off the muxer ts offset part of the process, so

[FFmpeg-devel] [PATCH 2/2] configure: Use no-narrowing for cuda_llvm compilation.

2021-02-12 Thread Matt Oliver
This fixes llvm compiler generating errors about narrowing conversion with recent releases. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index df298b4b9b..e716f6f932 100755 --- a/configure +++ b/configure @@ -6242,7 +6242,7 @@ fi if enabl

[FFmpeg-devel] [PATCH] hwcontext_vaapi: introduce AV_HWFRAME_MAP_DRM_COMPOSED_LAYERS

2021-02-12 Thread Simon Ser
This allows callers to ask for composed layers. From the libva docs: > If VA_EXPORT_SURFACE_SEPARATE_LAYERS is specified on export, each > layer will contain exactly one plane. For example, an NV12 > surface will be exported as two layers, one of DRM_FORMAT_R8 and > one of DRM_FORMAT_GR88. > If V

[FFmpeg-devel] [PATCH 1/2] cuda_runtime.h: Correct ushort4 to use ushort.

2021-02-12 Thread Matt Oliver
--- compat/cuda/cuda_runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/cuda/cuda_runtime.h b/compat/cuda/cuda_runtime.h index 0bf3de85d3..c5450b2542 100644 --- a/compat/cuda/cuda_runtime.h +++ b/compat/cuda/cuda_runtime.h @@ -73,7 +73,7 @@ typedef struct __device

Re: [FFmpeg-devel] [PATCH 1/2] cuda_runtime.h: Correct ushort4 to use ushort.

2021-02-12 Thread Timo Rothenpieler
LGTM I wonder if the compiler even cares? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodecdec: Do not abort when H264/HEVC extradata extraction fails

2021-02-12 Thread Jan Ekström
On Fri, Feb 12, 2021 at 12:36 PM Matthieu Bouron wrote: > > On Mon, Jan 25, 2021 at 06:38:36PM +0100, sfan5 wrote: > > Although rare, extradata can be present but empty and extraction will fail. > > However Android also supports passing codec-specific data inline and > > will likely play such a st

[FFmpeg-devel] [PATCH] avfilter: add vif filter

2021-02-12 Thread Paul B Mahol
From: Ashish Singh This is Visual Information Fidelity (VIF) filter and one of the component filters of VMAF. It outputs the average VIF score over all frames. Signed-off-by: Ashish Singh Signed-off-by: Paul B Mahol --- doc/filters.texi | 21 ++ libavfilter/Makefile | 1 + liba

Re: [FFmpeg-devel] [PATCH] avcodec/dpx: check for possible buffer overreads

2021-02-12 Thread Michael Niedermayer
On Fri, Feb 12, 2021 at 12:00:17AM +0100, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/dpx.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c > index 5372e3d586..68a2762017 100644 > --- a/libavcodec/dpx.c > +++ b/libavcodec/d

Re: [FFmpeg-devel] [PATCH] avcodec/dpx: check for possible buffer overreads

2021-02-12 Thread Paul B Mahol
On Fri, Feb 12, 2021 at 8:48 PM Michael Niedermayer wrote: > On Fri, Feb 12, 2021 at 12:00:17AM +0100, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > > --- > > libavcodec/dpx.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c > > index

[FFmpeg-devel] [PATCH v2] avcodec/mediacodecdec: Do not abort when H264/HEVC extradata extraction fails

2021-02-12 Thread sfan5
Hi, attached v2 patch after discussion on IRC with JEEB (as he already mentioned). Only change is that the log level turns to debug when missing parameter sets are within spec (cf. 14496-15). >From 2fc46b8b22361d02f8c4008c3f47b2c3d0046b3a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 25

Re: [FFmpeg-devel] [PATCH v2] avcodec/mediacodecdec: Do not abort when H264/HEVC extradata extraction fails

2021-02-12 Thread Andreas Rheinhardt
sfan5: > Hi, > > > attached v2 patch after discussion on IRC with JEEB (as he already > mentioned). > > Only change is that the log level turns to debug when missing parameter > sets are within spec (cf. 14496-15). > > > -av_log(avctx, AV_LOG_ERROR, "Could not extract PPS/SPS from > e

[FFmpeg-devel] [PATCH v3] avcodec/mediacodecdec: Do not abort when H264/HEVC extradata extraction fails

2021-02-12 Thread sfan5
12.02.21 - 21:43 - Andreas Rheinhardt: sfan5: Hi, attached v2 patch after discussion on IRC with JEEB (as he already mentioned). Only change is that the log level turns to debug when missing parameter sets are within spec (cf. 14496-15). -av_log(avctx, AV_LOG_ERROR, "Could not extra