[FFmpeg-devel] [PATCH v2] avfilter: add overlay vaapi filter

2021-11-21 Thread Fei Wang
From: Xinpeng Sun Overlay one video on the top of another. It takes two inputs and has one output. The first input is the "main" video on which the second input is overlaid. This filter requires same memory layout for all the inputs. An example command to use this filter to overlay overlay.mp4

Re: [FFmpeg-devel] [PATCH v3 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions

2021-11-21 Thread Chen, Wenbin
> > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Xiang, Haihao > > Sent: Monday, October 18, 2021 6:48 AM > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH v3 1/1] avutils/hwcontext: When > > deriving a hwdevice, search for existing device in both directi

Re: [FFmpeg-devel] [PATCH 4/7] libavutil/hwcontext_vulkan: Allocate vkFrame in one memory

2021-11-21 Thread Chen, Wenbin
> 19 Nov 2021, 19:13 by d...@lynne.ee: > > > 19 Nov 2021, 18:59 by d...@lynne.ee: > > > >> 15 Nov 2021, 08:25 by wenbin.c...@intel.com: > >> > 9 Nov 2021, 10:18 by wenbin.c...@intel.com: > > > The vaapi can import external frame, but the planes of the external > > frames should

[FFmpeg-devel] [PATCH] avformat/mpegts: fix stream index in verbose log message

2021-11-21 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mpegts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 29a267436f..36ab7ab3af 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2238,11 +2238,10 @@ static AVStr

[FFmpeg-devel] [PATCH] avformat: do not use AVIO_FLAG_* with avio_alloc_context

2021-11-21 Thread Marvin Scholz
The documentation states that here 0 should be used for read-only and 1 for a writable buffer. AVIO_FLAG_WRITE however is 2, while it works due to the way the flag is handled internally, it is still wrong according to the documentation. Additionally it makes it seem as if the AVIO_FLAG_* values co

Re: [FFmpeg-devel] [PATCH] avcodec/h263: Fix global-buffer-overflow with noout flag2 set

2021-11-21 Thread Michael Niedermayer
On Sun, Nov 21, 2021 at 02:58:35AM +0100, Andreas Rheinhardt wrote: > h263_get_motion_length() forgot to take an absolute value; > as a consequence, a negative index was used to access an array. > This leads to potential crashes, but mostly it just accesses what > is to the left of ff_mvtab (unless

[FFmpeg-devel] [PATCH] libavformat/fifo: avoid repeated failure and recovery

2021-11-21 Thread Ryoji Gyoda
If fifo_thread_recover() succeeds immediately after fifo_thread_dispatch_message() fails, the dts of the packet is scaled twice, causing cur_dts to be abnormally large and "Application provided invalid, non monotonically increasing dts to muxer in stream" to occur repeatedly. Steps to reproduce: 1