Re: [FFmpeg-devel] [PATCH 2/2] lavc/hevc_refs: Fix the logic of find_ref_idx()

2020-05-20 Thread Fu, Linjie
> From: ffmpeg-devel On Behalf Of Fu, > Linjie > Sent: Monday, May 18, 2020 15:17 > To: ffmpeg-devel@ffmpeg.org > Cc: Xu, Guangxin > Subject: Re: [FFmpeg-devel] [PATCH 2/2] lavc/hevc_refs: Fix the logic of > find_ref_idx() > > > From: Fu, Linjie > > Sent: Tuesday, May 12, 2020 21:44 > > To: ffm

Re: [FFmpeg-devel] [PATCH 2/3] avformat/ttaenc: Defer freeing dynamic buffer

2020-05-20 Thread Andreas Rheinhardt
James Almer: > On 5/20/2020 11:36 PM, Andreas Rheinhardt wrote: >> The TTA muxer writes a seektable in a dynamic buffer as it receives >> packets and when writing the trailer, closes the dynamic buffer using >> avio_close_dyn_buf(), writes the seektable and frees the buffer. But >> the TTA muxer al

Re: [FFmpeg-devel] [PATCH 1/2] hwcontext_vulkan: expose the amount of queues for each queue family

2020-05-20 Thread Lynne
May 20, 2020, 22:43 by s...@jkqxz.net: > On 19/05/2020 22:29, Lynne wrote: > >> May 19, 2020, 20:50 by s...@jkqxz.net: >> >>> On 13/05/2020 16:53, Lynne wrote: >>> This, along with the next patch, are the last missing pieces to being interoperable with libplacebo. There is no dange

Re: [FFmpeg-devel] [PATCH 2/3] avformat/ttaenc: Defer freeing dynamic buffer

2020-05-20 Thread James Almer
On 5/20/2020 11:36 PM, Andreas Rheinhardt wrote: > The TTA muxer writes a seektable in a dynamic buffer as it receives > packets and when writing the trailer, closes the dynamic buffer using > avio_close_dyn_buf(), writes the seektable and frees the buffer. But > the TTA muxer already has a deinit

[FFmpeg-devel] [PATCH 3/3] avutil/mem: Use max_alloc_size as-is

2020-05-20 Thread Andreas Rheinhardt
The size of a single allocation performed by av_malloc() or av_realloc() is supposed to be bounded by max_alloc_size, which defaults to INT_MAX and can be set by the user; yet currently this is not completely honoured: The actual value used is max_alloc_size - 32. How this came to be can only be un

[FFmpeg-devel] [PATCH 2/3] avformat/ttaenc: Defer freeing dynamic buffer

2020-05-20 Thread Andreas Rheinhardt
The TTA muxer writes a seektable in a dynamic buffer as it receives packets and when writing the trailer, closes the dynamic buffer using avio_close_dyn_buf(), writes the seektable and frees the buffer. But the TTA muxer already has a deinit function which unconditionally calls ffio_free_dyn_buf()

[FFmpeg-devel] [PATCH 1/3] avformat/matroskadec: Beautify matroska_parse_laces()

2020-05-20 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/matroskadec.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 4fa32365c3..c02c2561c1 100644 --- a/libavformat/matroskadec.c +++ b/libavfo

Re: [FFmpeg-devel] [PATCH 2/2] hwcontext_vulkan: expose the enabled device features

2020-05-20 Thread Lynne
May 20, 2020, 22:56 by s...@jkqxz.net: > On 19/05/2020 21:56, Lynne wrote: > > "Each pNext member of any structure (including this one) in the pNext chain > must be either NULL or a pointer to a valid instance of ... [big list which > does not include VkPhysicalDeviceFeatures]." Was that meant

Re: [FFmpeg-devel] [PATCH] mfenc: Fall back to avctx->time_base if avctx->framerate isn't set

2020-05-20 Thread myp...@gmail.com
On Thu, May 21, 2020 at 4:09 AM Martin Storsjö wrote: > > The framerate field is the one users are supposed to set, but not > all users might be setting it, so it might be good to fall back > time_base in that case. > --- > libavcodec/mfenc.c | 10 +- > 1 file changed, 9 insertions(+), 1

[FFmpeg-devel] Specifying MOV_TIMESCALE from a command-line switch

2020-05-20 Thread Kaplan, John
Hi Guys, I've just finished a bunch of research on encoding audio .flac files into MP4/AAC using ffmpeg, and we're seeing a detail in the header data that is keeping some audio players from correctly interpreting the metadata in the MP4 elst box. Long story short, the issue is that MOV_TIMESCA

Re: [FFmpeg-devel] [PATCH] avcodec/decode: remove ff_decode_bsfs_uninit()

2020-05-20 Thread myp...@gmail.com
On Wed, May 20, 2020 at 12:08 PM James Almer wrote: > > It's been a wrapper for a simple av_bsf_free() call since c96904f525. > > Signed-off-by: James Almer > --- > libavcodec/decode.c | 7 +-- > libavcodec/decode.h | 2 -- > libavcodec/utils.c | 4 ++-- > 3 files changed, 3 insertions(+),

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/cbs_h265_syntax_template: Limit num_long_term_pics more strictly

2020-05-20 Thread Michael Niedermayer
On Wed, May 20, 2020 at 10:29:17PM +0100, Mark Thompson wrote: > On 20/05/2020 22:16, Michael Niedermayer wrote: > > On Wed, May 20, 2020 at 08:56:29PM +0200, Michael Niedermayer wrote: > >> On Mon, Apr 20, 2020 at 07:34:44PM -0300, James Almer wrote: > >>> On 4/20/2020 7:03 PM, Michael Niedermayer

Re: [FFmpeg-devel] [PATCH 2/5] checkasm/sw_scale: Fix stack-buffer-overflow

2020-05-20 Thread Andreas Rheinhardt
Michael Niedermayer: > On Tue, May 19, 2020 at 12:45:58PM +0200, Andreas Rheinhardt wrote: >> A buffer whose size is not a multiple of four has been initialized using >> consecutive writes of 32bits. This results in a stack-buffer-overflow >> reported by ASAN in the checkasm-sw_scale FATE-test. >>

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Marton Balint
On Wed, 20 May 2020, Emanuele Oriani wrote: If that was the only concern against it, then I'd say it is acceptable. > But there are some other concerns, also it seems to me xcbgrab can be > improved to reach the same smoothness as this attempt, and that was the > main distinctive feature of i

Re: [FFmpeg-devel] [PATCH 5/5] avformat/hls: Remove redundant resetting of pointer

2020-05-20 Thread Andreas Rheinhardt
myp...@gmail.com: > On Tue, May 19, 2020 at 7:10 PM Andreas Rheinhardt > wrote: >> >> ff_id3v2_free_extra_meta() takes a ID3V2ExtraMeta ** so that it can >> already reset the pointer. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavformat/hls.c | 1 - >> 1 file changed, 1 deletion(-) >> >

Re: [FFmpeg-devel] [PATCH 2/2] hwcontext_vulkan: expose the enabled device features

2020-05-20 Thread Mark Thompson
On 19/05/2020 21:56, Lynne wrote: > May 19, 2020, 20:57 by s...@jkqxz.net: > >> On 13/05/2020 16:53, Lynne wrote: >> >>> With this, the puzze of making libplacebo, ffmpeg and any other Vulkan >>> API users interoperable is complete. >>> Users of both libraries can initialize one another's context

Re: [FFmpeg-devel] [PATCH] cbs_h265: Ensure that a predicted RPS doesn't contain too many pictures

2020-05-20 Thread Mark Thompson
On 03/05/2020 23:38, Mark Thompson wrote: > On 03/05/2020 19:14, Michael Niedermayer wrote: >> On Sun, May 03, 2020 at 04:30:00PM +0100, Mark Thompson wrote: >>> If the RPS we are predicting from has maximum size then at least one of >>> the pictures in it must be discarded before adding the curren

Re: [FFmpeg-devel] [PATCH 1/2] hwcontext_vulkan: expose the amount of queues for each queue family

2020-05-20 Thread Mark Thompson
On 19/05/2020 22:29, Lynne wrote: > May 19, 2020, 20:50 by s...@jkqxz.net: > >> On 13/05/2020 16:53, Lynne wrote: >> >>> This, along with the next patch, are the last missing pieces to being >>> interoperable with libplacebo. >>> There is no danger of users running into this API break because the

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/cbs_h265_syntax_template: Limit num_long_term_pics more strictly

2020-05-20 Thread Mark Thompson
On 20/05/2020 22:16, Michael Niedermayer wrote: > On Wed, May 20, 2020 at 08:56:29PM +0200, Michael Niedermayer wrote: >> On Mon, Apr 20, 2020 at 07:34:44PM -0300, James Almer wrote: >>> On 4/20/2020 7:03 PM, Michael Niedermayer wrote: The limit is based on hevcdec.c Fixes: 20854/cl

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/cbs_h265_syntax_template: Limit num_long_term_pics more strictly

2020-05-20 Thread James Almer
On 5/20/2020 6:16 PM, Michael Niedermayer wrote: > On Wed, May 20, 2020 at 08:56:29PM +0200, Michael Niedermayer wrote: >> On Mon, Apr 20, 2020 at 07:34:44PM -0300, James Almer wrote: >>> On 4/20/2020 7:03 PM, Michael Niedermayer wrote: The limit is based on hevcdec.c Fixes: 20854/c

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/cbs_h265_syntax_template: Limit num_long_term_pics more strictly

2020-05-20 Thread Michael Niedermayer
On Wed, May 20, 2020 at 08:56:29PM +0200, Michael Niedermayer wrote: > On Mon, Apr 20, 2020 at 07:34:44PM -0300, James Almer wrote: > > On 4/20/2020 7:03 PM, Michael Niedermayer wrote: > > > The limit is based on hevcdec.c > > > Fixes: > > > 20854/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_MET

[FFmpeg-devel] [PATCH] mfenc: Fix setting has_b_frames for max_b_frames == 1

2020-05-20 Thread Martin Storsjö
This was a mistake in my own additions in 050b72ab5ef318605b305aa6cb920e8b52f1002e. --- libavcodec/mfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c index dd8188dae3..e62ae4019a 100644 --- a/libavcodec/mfenc.c +++ b/libavcodec/mfenc

[FFmpeg-devel] [PATCH] avcodec/mv30: Do not allow MVs outside the allocated image

2020-05-20 Thread Michael Niedermayer
Fixes: out of array read Fixes: 21804/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5673678898724864 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/mv30.c | 4 ++-- 1 file cha

Re: [FFmpeg-devel] [PATCH 2/2] Use gcc/clang builtins for av_sat_(add|sub)_64_c if available.

2020-05-20 Thread Dale Curtis
On Wed, May 20, 2020 at 1:17 AM Michael Niedermayer wrote: > > In file included from ./libavutil/avutil.h:296:0, > from ./libavutil/log.h:25, > from ./libavutil/thread.h:34, > from libavdevice/alldevices.c:22: > ./libavutil/common.h: In function

Re: [FFmpeg-devel] FFmpeg 4.2.3

2020-05-20 Thread Marton Balint
On Wed, 20 May 2020, Reto Kromer wrote: Michael Niedermayer wrote: 4.3 is on my todo list, i should have made that already but i didnt. realistically 4.3 might happen in 1-2 weeks, if nothing interferes and nothing unexpected happens. Thank you, most appreciated! Reto Sorry, I just reali

Re: [FFmpeg-devel] [RFC PATCH v2] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-05-20 Thread Michael Niedermayer
On Wed, May 20, 2020 at 08:48:41PM +0530, Gautam Ramakrishnan wrote: > On Tue, Apr 21, 2020 at 3:41 AM Michael Niedermayer > wrote: > > > > On Mon, Apr 20, 2020 at 04:13:44PM +0530, Gautam Ramakrishnan wrote: > > > On Mon, Apr 20, 2020 at 3:38 PM Michael Niedermayer > > > wrote: > > > > > > > > O

[FFmpeg-devel] [PATCH] mfenc: Fall back to avctx->time_base if avctx->framerate isn't set

2020-05-20 Thread Martin Storsjö
The framerate field is the one users are supposed to set, but not all users might be setting it, so it might be good to fall back time_base in that case. --- libavcodec/mfenc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c ind

[FFmpeg-devel] [PATCH] avformat/mpegts: use get_packet_size in mpegts_resync for determining raw_packet_size

2020-05-20 Thread Marton Balint
The old resync logic had some bugs, for example the packet size could stuck into 192 bytes, because pos47_full was not updated for every packet, and for unseekable inputs the resync logic simply skipped some 0x47 sync bytes, therefore the calculated distance between sync bytes was a multiple of 188

Re: [FFmpeg-devel] FFmpeg 4.2.3

2020-05-20 Thread Reto Kromer
Michael Niedermayer wrote: >4.3 is on my todo list, i should have made that already but i >didnt. >realistically 4.3 might happen in 1-2 weeks, if nothing >interferes and nothing unexpected happens. Thank you, most appreciated! Reto ___ ffmpeg-devel ma

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: fix resync logic stuck in 192 bytes

2020-05-20 Thread Marton Balint
On Wed, 20 May 2020, Michael Niedermayer wrote: On Tue, May 19, 2020 at 09:06:59PM +0200, Marton Balint wrote: pos47_full is not updated for every packet, and for unseekable inputs the resync logic might simply skip some 0x47 sync bytes. In order to detect these let's check for modulo instead

Re: [FFmpeg-devel] [PATCH] avcodec: improve avcodec_receive_frame() doxy

2020-05-20 Thread James Almer
On 5/20/2020 3:56 PM, Andreas Rheinhardt wrote: > Anton Khirnov: >> Make it clear that the returned reference is owned by the caller. >> --- >> libavcodec/avcodec.h | 8 >> 1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h >> in

Re: [FFmpeg-devel] [PATCH] avcodec: improve avcodec_receive_frame() doxy

2020-05-20 Thread Andreas Rheinhardt
Anton Khirnov: > Make it clear that the returned reference is owned by the caller. > --- > libavcodec/avcodec.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index c9baf859ac..cadd213301 100644 > --- a/libavcodec/avc

Re: [FFmpeg-devel] [PATCH 5/7] avcodec/sonic: Fix several integer state overflows

2020-05-20 Thread Michael Niedermayer
On Mon, May 11, 2020 at 01:07:54AM +0200, Paul B Mahol wrote: > NAK > > please remove this code fully. Id like to apply this and backport to the releases branches because sonic is in the releases are you ok with that ? Thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/cbs_h265_syntax_template: Limit num_long_term_pics more strictly

2020-05-20 Thread Michael Niedermayer
On Mon, Apr 20, 2020 at 07:34:44PM -0300, James Almer wrote: > On 4/20/2020 7:03 PM, Michael Niedermayer wrote: > > The limit is based on hevcdec.c > > Fixes: > > 20854/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_METADATA_fuzzer-5160442882424832 > > Fixes: out of array access > > > > Found-by:

Re: [FFmpeg-devel] [RFC] encoder profile validation

2020-05-20 Thread Marton Balint
On Wed, 20 May 2020, Anton Khirnov wrote: Quoting Marton Balint (2020-05-20 10:35:07) On Wed, 20 May 2020, Anton Khirnov wrote: > Quoting Marton Balint (2020-05-18 20:32:53) >> >> >> On Mon, 18 May 2020, Anton Khirnov wrote: >> >> > Quoting Marton Balint (2020-05-16 15:52:22) >> >> Hi,

Re: [FFmpeg-devel] [PATCH v2] movenc: Use first H264/HEVC frame as extradata, if it is missing

2020-05-20 Thread James Almer
On 5/20/2020 3:10 AM, Martin Storsjö wrote: > Sticking a full frame in the extradata works, as the code for writing > the avcC/hvcC extracts the relevant parameter set NAL units - provided > that they actually exist in the frame. > > Some encoders don't provide split out extradata directly on init

Re: [FFmpeg-devel] [PATCH] avcodec: improve avcodec_receive_frame() doxy

2020-05-20 Thread James Almer
On 5/20/2020 9:52 AM, Anton Khirnov wrote: > Make it clear that the returned reference is owned by the caller. > --- > libavcodec/avcodec.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index c9baf859ac..cadd213301 1

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: fix resync logic stuck in 192 bytes

2020-05-20 Thread Marton Balint
On Wed, 20 May 2020, Limin Wang wrote: On Wed, May 20, 2020 at 08:26:37AM +0200, Marton Balint wrote: On Wed, 20 May 2020, lance.lmw...@gmail.com wrote: >On Tue, May 19, 2020 at 09:06:59PM +0200, Marton Balint wrote: >>pos47_full is not updated for every packet, and for unseekable inputs t

Re: [FFmpeg-devel] FFmpeg 4.2.3

2020-05-20 Thread Michael Niedermayer
On Tue, May 19, 2020 at 03:51:32PM +0200, Reto Kromer wrote: > Michael Niedermayer wrote: > > >Its quite a while since 4.2.2 so i intend to make 4.2.3 soon > >if you want something backported, backport it now > > Good news, thank you! > > Out of curiosity, are you also preparing the 4.3 major r

Re: [FFmpeg-devel] [RFC PATCH v2] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-05-20 Thread Gautam Ramakrishnan
On Tue, Apr 21, 2020 at 3:41 AM Michael Niedermayer wrote: > > On Mon, Apr 20, 2020 at 04:13:44PM +0530, Gautam Ramakrishnan wrote: > > On Mon, Apr 20, 2020 at 3:38 PM Michael Niedermayer > > wrote: > > > > > > On Mon, Apr 20, 2020 at 01:36:47AM +0530, gautamr...@gmail.com wrote: > > > > From: Ga

[FFmpeg-devel] [PATCH 1/2] avformat/mpegtsenc: simplify code by using OFFSET() and ENC macros

2020-05-20 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/mpegtsenc.c | 92 + 1 file changed, 47 insertions(+), 45 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index bf1a7ee..9909d25 100644 --- a/libavformat/mpegts

[FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: cosmetic

2020-05-20 Thread lance . lmwang
From: Limin Wang Merge the short lines after the last commit Signed-off-by: Limin Wang --- libavformat/mpegtsenc.c | 92 - 1 file changed, 29 insertions(+), 63 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 990

Re: [FFmpeg-devel] [PATCH 2/2] Use gcc/clang builtins for av_sat_(add|sub)_64_c if available.

2020-05-20 Thread Martin Storsjö
On Wed, 20 May 2020, James Almer wrote: On 5/20/2020 5:17 AM, Michael Niedermayer wrote: On Mon, May 18, 2020 at 03:24:59PM -0700, Dale Curtis wrote: On Mon, May 18, 2020 at 3:24 PM Dale Curtis wrote: On Mon, May 18, 2020 at 2:22 PM Michael Niedermayer wrote: 38cfdcfc9d4fa1c1239dc01a76

Re: [FFmpeg-devel] [PATCH v2] avcodec/exr: output float pixels in float pixel format

2020-05-20 Thread Michael Niedermayer
On Tue, May 19, 2020 at 08:45:22AM +0200, Paul B Mahol wrote: > it looks fine to me. will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you think the mosad wants you dead since a long time then you are either wrong or dead since a long time. si

Re: [FFmpeg-devel] [PATCH] fate: add adpcm_ima_cunning tests

2020-05-20 Thread Michael Niedermayer
On Sat, May 09, 2020 at 02:00:04PM +, Zane van Iperen wrote: > single: Single-track > track{0,1}: Dual-track > trunc-t1: Truncated track 1 > trunc-t2-track{0,1}: Fully-truncated track 2 > trunc-t2a-track{0,1}: Partially-truncated track 2 > trunc-h2:

Re: [FFmpeg-devel] [PATCH] [mov] Free temp buffer upon negative sample_size error.

2020-05-20 Thread Michael Niedermayer
On Mon, May 18, 2020 at 03:38:33PM -0700, Dale Curtis wrote: > 2d8d554f15a7a27cfeca81467cc9341a86f784e2 added a new error condition > to mov_read_stsz() but forgot to free a temporary buffer when it > occurs. > > Signed-off-by: Dale Curtis > --- > libavformat/mov.c | 1 + > 1 file changed, 1 ins

Re: [FFmpeg-devel] [PATCH 2/5] checkasm/sw_scale: Fix stack-buffer-overflow

2020-05-20 Thread Michael Niedermayer
On Tue, May 19, 2020 at 12:45:58PM +0200, Andreas Rheinhardt wrote: > A buffer whose size is not a multiple of four has been initialized using > consecutive writes of 32bits. This results in a stack-buffer-overflow > reported by ASAN in the checkasm-sw_scale FATE-test. > > Signed-off-by: Andreas R

Re: [FFmpeg-devel] [PATCH 2/2] Use gcc/clang builtins for av_sat_(add|sub)_64_c if available.

2020-05-20 Thread James Almer
On 5/20/2020 5:17 AM, Michael Niedermayer wrote: > On Mon, May 18, 2020 at 03:24:59PM -0700, Dale Curtis wrote: >> On Mon, May 18, 2020 at 3:24 PM Dale Curtis wrote: >> >>> On Mon, May 18, 2020 at 2:22 PM Michael Niedermayer >>> wrote: >>> > 38cfdcfc9d4fa1c1239dc01a766e369b20a0232a sat_

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Timo Rothenpieler
On 20.05.2020 14:31, Nicolas George wrote: Anton Khirnov (12020-05-20): You said it: "from the user". The user chose it. The documentation says "this demuxer user OpenGL, don't use it if applications are not ready for it", the user chose to use it. That means we are now forcing all the applica

[FFmpeg-devel] [PATCH] avcodec: improve avcodec_receive_frame() doxy

2020-05-20 Thread Anton Khirnov
Make it clear that the returned reference is owned by the caller. --- libavcodec/avcodec.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index c9baf859ac..cadd213301 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: fix resync logic stuck in 192 bytes

2020-05-20 Thread Michael Niedermayer
On Tue, May 19, 2020 at 09:06:59PM +0200, Marton Balint wrote: > pos47_full is not updated for every packet, and for unseekable inputs the > resync logic might simply skip some 0x47 sync bytes. In order to detect these > let's check for modulo instead of exact value. > > Also skip unrecognized syn

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Nicolas George
Anton Khirnov (12020-05-20): > > You said it: "from the user". The user chose it. The documentation says > > "this demuxer user OpenGL, don't use it if applications are not ready > > for it", the user chose to use it. > > That means we are now forcing all the application to be aware that > certain

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Anton Khirnov
Quoting Nicolas George (2020-05-20 11:34:04) > Anton Khirnov (12020-05-20): > > To a calling program, this demuxer would appear as any other demuxer. > > Many programs using libavformat will take the demuxer name from the user > > and use it as-is, which might break them in non-obvious ways if they

Re: [FFmpeg-devel] [PATCH] Don't adjust start time for MP3 files; packets are not adjusted.

2020-05-20 Thread Anton Khirnov
Quoting Dale Curtis (2020-04-24 01:33:21) > This is a patch Chromium has carried for a while, we forgot to send it > upstream. 7546ac2fee4 made it so that the start_time for mp3 files is > adjusted for skip_samples. However, this appears incorrect because > subsequent packet timestamps are not adju

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: fix resync logic stuck in 192 bytes

2020-05-20 Thread Limin Wang
On Wed, May 20, 2020 at 08:26:37AM +0200, Marton Balint wrote: > > > On Wed, 20 May 2020, lance.lmw...@gmail.com wrote: > > >On Tue, May 19, 2020 at 09:06:59PM +0200, Marton Balint wrote: > >>pos47_full is not updated for every packet, and for unseekable inputs the > >>resync logic might simply

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Nicolas George
Anton Khirnov (12020-05-20): > To a calling program, this demuxer would appear as any other demuxer. > Many programs using libavformat will take the demuxer name from the user > and use it as-is, which might break them in non-obvious ways if they use > OpenGL themselves. You said it: "from the use

Re: [FFmpeg-devel] [RFC] encoder profile validation

2020-05-20 Thread Anton Khirnov
Quoting Marton Balint (2020-05-20 10:35:07) > > > On Wed, 20 May 2020, Anton Khirnov wrote: > > > Quoting Marton Balint (2020-05-18 20:32:53) > >> > >> > >> On Mon, 18 May 2020, Anton Khirnov wrote: > >> > >> > Quoting Marton Balint (2020-05-16 15:52:22) > >> >> Hi, > >> >> > >> >> As you ma

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Anton Khirnov
Quoting Nicolas George (2020-05-20 10:47:57) > Anton Khirnov (12020-05-20): > > For what my opinion is worth, I agree with Lynne here. Messing with > > OpenGL global state in the libraries is something we absolutely should > > not do. > > Good thing we would not be "messing with" anything. We woul

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Nicolas George
Anton Khirnov (12020-05-20): > For what my opinion is worth, I agree with Lynne here. Messing with > OpenGL global state in the libraries is something we absolutely should > not do. Good thing we would not be "messing with" anything. We would be using the global OpenGL state at the request of the

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Anton Khirnov
Quoting Lynne (2020-05-19 21:52:29) > > That's a driver issue, no fault of kmsgrab, and I can't even confirm seeing > those bugs happen to anyone > using kmsgrab, either on intel or amd, so maybe your system state was > somewhat broken? > Either way, there's still the issue of OpenGL state, Open

Re: [FFmpeg-devel] [RFC] encoder profile validation

2020-05-20 Thread Marton Balint
On Wed, 20 May 2020, Anton Khirnov wrote: Quoting Marton Balint (2020-05-18 20:32:53) On Mon, 18 May 2020, Anton Khirnov wrote: > Quoting Marton Balint (2020-05-16 15:52:22) >> Hi, >> >> As you may know, a recent patchset enabled AVCodecContext->profile >> constants to reside in encoders

Re: [FFmpeg-devel] [RFC] encoder profile validation

2020-05-20 Thread Anton Khirnov
Quoting Marton Balint (2020-05-18 20:32:53) > > > On Mon, 18 May 2020, Anton Khirnov wrote: > > > Quoting Marton Balint (2020-05-16 15:52:22) > >> Hi, > >> > >> As you may know, a recent patchset enabled AVCodecContext->profile > >> constants to reside in encoders. > >> > >> In order to make

Re: [FFmpeg-devel] [PATCH 2/2] Use gcc/clang builtins for av_sat_(add|sub)_64_c if available.

2020-05-20 Thread Michael Niedermayer
On Mon, May 18, 2020 at 03:24:59PM -0700, Dale Curtis wrote: > On Mon, May 18, 2020 at 3:24 PM Dale Curtis wrote: > > > On Mon, May 18, 2020 at 2:22 PM Michael Niedermayer > > wrote: > > > >> > >> > 38cfdcfc9d4fa1c1239dc01a766e369b20a0232a sat_math_builtin_v5.patch > >> > > > > Latest upload is

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodec_common: use MediaFormat to probe frame color characteristics

2020-05-20 Thread Matthieu Bouron
On Sat, May 09, 2020 at 09:45:05AM +0200, Matthieu Bouron wrote: > On Tue, Mar 31, 2020 at 10:03:08AM +0200, Matthieu Bouron wrote: > > --- > > libavcodec/mediacodecdec_common.c | 100 ++ > > 1 file changed, 100 insertions(+) > > > > diff --git a/libavcodec/mediacodecd

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Emanuele Oriani
> If that was the only concern against it, then I'd say it is acceptable. > But there are some other concerns, also it seems to me xcbgrab can be > improved to reach the same smoothness as this attempt, and that was the > main distinctive feature of it. With that advantage lost, I'd say fixing > x