Re: [FFmpeg-devel] [PATCH v11 5/5] fate/matroska: Add tests for reading/writing BlockAdditionMapping elements

2021-12-31 Thread Andreas Rheinhardt
quietvoid: > Tests the parsing and writing of AVDOVIDecoderConfigurationRecord, > when it is present as a Dolby Vision configuration block addition mapping. > > Signed-off-by: quietvoid > --- > The required regression test file is available here: https://0x0.st/-hWK.mkv > Should be moved to fate-

Re: [FFmpeg-devel] [PATCH v11 3/5] avformat/mov: Refactor mov_read_dvcc_dvvc to use ff_isom_parse_dvcc_dvvc

2021-12-31 Thread Andreas Rheinhardt
quietvoid: > To avoid duplicating code. The implementation in dovi_isom is identical. > > Signed-off-by: quietvoid > --- > libavformat/mov.c | 50 +++ > 1 file changed, 7 insertions(+), 43 deletions(-) > > diff --git a/libavformat/mov.c b/libavformat/

Re: [FFmpeg-devel] [PATCH v10 1/5] avformat/dovi_isom: Implement Dolby Vision configuration parsing/writing

2021-12-31 Thread Andreas Rheinhardt
quietvoid: > On Fri, Dec 31, 2021 at 9:16 PM Andreas Rheinhardt > wrote: >> >> quietvoid: >>> Both parse/write implementations are based on mov/movenc. >>> >>> This only adds support for the "Dolby Vision configuration box". >>> Other configuration boxes, such as >>> "Dolby Vision enhancement laye

Re: [FFmpeg-devel] [PATCH v3 1/2] swscale/x86/output.asm: add x86-optimized planer gbr yuv2anyX functions

2021-12-31 Thread Mark Reid
On Sun, Dec 12, 2021 at 3:12 PM Mark Reid wrote: > > > On Wed, Nov 24, 2021 at 1:15 PM wrote: > >> From: Mark Reid >> >> changes since v2: >> * fixed label >> changes since v1: >> * remove vex intruction on sse4 path >> * some load/pack marcos use less intructions >> * fixed some typos >> >

Re: [FFmpeg-devel] [PATCH v10 1/5] avformat/dovi_isom: Implement Dolby Vision configuration parsing/writing

2021-12-31 Thread quietvoid
On Fri, Dec 31, 2021 at 9:16 PM Andreas Rheinhardt wrote: > > quietvoid: > > Both parse/write implementations are based on mov/movenc. > > > > This only adds support for the "Dolby Vision configuration box". > > Other configuration boxes, such as > > "Dolby Vision enhancement layer configuration b

[FFmpeg-devel] [PATCH v11 5/5] fate/matroska: Add tests for reading/writing BlockAdditionMapping elements

2021-12-31 Thread quietvoid
Tests the parsing and writing of AVDOVIDecoderConfigurationRecord, when it is present as a Dolby Vision configuration block addition mapping. Signed-off-by: quietvoid --- The required regression test file is available here: https://0x0.st/-hWK.mkv Should be moved to fate-suite/mkv/dovi-p5.mkv It

[FFmpeg-devel] [PATCH v11 4/5] avformat/movenc: Refactor mov_write_dvcc_dvvc_tag to use ff_isom_put_dvcc_dvvc

2021-12-31 Thread quietvoid
Improves code legibility by not using bit shifts. Also avoids duplicating the dvcC/dvvC ISOM box writing code. Signed-off-by: quietvoid --- libavformat/movenc.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc

[FFmpeg-devel] [PATCH v11 3/5] avformat/mov: Refactor mov_read_dvcc_dvvc to use ff_isom_parse_dvcc_dvvc

2021-12-31 Thread quietvoid
To avoid duplicating code. The implementation in dovi_isom is identical. Signed-off-by: quietvoid --- libavformat/mov.c | 50 +++ 1 file changed, 7 insertions(+), 43 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 351ecde770..ad5

[FFmpeg-devel] [PATCH v11 2/5] avformat/matroska{dec, enc}: Parse BlockAdditionMapping elements

2021-12-31 Thread quietvoid
Adds handling of dvcC/dvvC block addition mappings. The parsing creates AVDOVIDecoderConfigurationRecord side data. The configuration block is written when muxing into Matroska, if DOVI side data is present for the track. Most of the Matroska element parsing is based on Plex's FFmpeg source code.

[FFmpeg-devel] [PATCH v11 1/5] avformat/dovi_isom: Implement Dolby Vision configuration parsing/writing

2021-12-31 Thread quietvoid
Both parse/write implementations are based on mov/movenc. This only adds support for the "Dolby Vision configuration box". Other configuration boxes, such as "Dolby Vision enhancement layer configuration box" are not supported. The new functions will be used to implement parsing/writing the DOVI

[FFmpeg-devel] [PATCH v11 0/5] Add support for Matroska BlockAdditionMapping elements

2021-12-31 Thread quietvoid
This patch set adds support for reading/writing the Matroska BlockAdditionMapping elements, as well as for reading/writing dvcC/dvvC blocks in Matroska. Created utility functions to read/write Dolby Vision boxes for ISOM. This was done to avoid duplicating the code, as the Matroska blocks and MOV

Re: [FFmpeg-devel] DNN data layout CHW or HWC and data normalization or denormalization?

2021-12-31 Thread Guo, Yejun
-Original Message- From: ffmpeg-devel On Behalf Of Alex Sent: 2022年1月1日 3:16 To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] DNN data layout CHW or HWC and data normalization or denormalization? Hi! Can any one tell me is it layout of DNNData->data are chw or hw

Re: [FFmpeg-devel] [PATCH v10 1/5] avformat/dovi_isom: Implement Dolby Vision configuration parsing/writing

2021-12-31 Thread Andreas Rheinhardt
quietvoid: > Both parse/write implementations are based on mov/movenc. > > This only adds support for the "Dolby Vision configuration box". > Other configuration boxes, such as > "Dolby Vision enhancement layer configuration box" are not supported. > > The new functions will be used to implement

Re: [FFmpeg-devel] [PATCH v10 3/5] avformat/mov: Refactor mov_read_dvcc_dvvc to use ff_isom_parse_dvcc_dvvc

2021-12-31 Thread Andreas Rheinhardt
quietvoid: > To avoid duplicating code. The implementation in dovi_isom is identical. > > Signed-off-by: quietvoid > --- > libavformat/mov.c | 52 --- > 1 file changed, 9 insertions(+), 43 deletions(-) > > diff --git a/libavformat/mov.c b/libavformat/

Re: [FFmpeg-devel] [PATCH v10 2/5] avformat/matroska{dec, enc}: Parse BlockAdditionMapping elements

2021-12-31 Thread Andreas Rheinhardt
quietvoid: > Adds handling of dvcC/dvvC block addition mappings. > > The parsing creates AVDOVIDecoderConfigurationRecord side data. > The configuration block is written when muxing into Matroska, > if DOVI side data is present for the track. > > Most of the Matroska element parsing is based on P

[FFmpeg-devel] [PATCH v2 2/2] avformat/mvdec: re-indent after last commit

2021-12-31 Thread John-Paul Stewart
Signed-off-by: John-Paul Stewart --- libavformat/mvdec.c | 72 ++--- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index 0f0474141b..4f233aff5f 100644 --- a/libavformat/mvdec.c +++ b/libavformat/mv

[FFmpeg-devel] [PATCH v2 1/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread John-Paul Stewart
Only allocate an audio stream if there is one in the data. Silicon Graphics movie format will contain default values (16 bit samples, 2 audio channels, 22050 Hz sample rate) even when no audio is present in the file. This confuses FFmpeg into thinking such an audio stream is present with 0 sample

[FFmpeg-devel] [PATCH v2 0/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread John-Paul Stewart
Changed in v2: Allocate the audio stream first to maintain consistent behaviour with prior code. Recent discussion on the list led me to realize that libavformat was unconditionally creating an audio stream for all SGI movie format (version 2) files, even when no audio is present in the fi

Re: [FFmpeg-devel] [PATCH 0/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread John-Paul Stewart
On 2021-12-31 19:33, Andreas Rheinhardt wrote: > John-Paul Stewart: >> On 2021-12-31 17:19, Andreas Rheinhardt wrote: >>> John-Paul Stewart: Recent discussion on the list led me to realize that libavformat was unconditionally creating an audio stream for all SGI movie format (version

Re: [FFmpeg-devel] [PATCH 0/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread Andreas Rheinhardt
John-Paul Stewart: > On 2021-12-31 17:19, Andreas Rheinhardt wrote: >> John-Paul Stewart: >>> Recent discussion on the list led me to realize that libavformat was >>> unconditionally creating an audio stream for all SGI movie format >>> (version 2) files, even when no audio is present in the file.

Re: [FFmpeg-devel] [PATCH 0/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread John-Paul Stewart
On 2021-12-31 17:19, Andreas Rheinhardt wrote: > John-Paul Stewart: >> Recent discussion on the list led me to realize that libavformat was >> unconditionally creating an audio stream for all SGI movie format >> (version 2) files, even when no audio is present in the file. >> >> A sample of a mov

Re: [FFmpeg-devel] [PATCH 0/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread Andreas Rheinhardt
John-Paul Stewart: > Recent discussion on the list led me to realize that libavformat was > unconditionally creating an audio stream for all SGI movie format > (version 2) files, even when no audio is present in the file. > > A sample of a movie file with no audio can be found at > http://ww

[FFmpeg-devel] [PATCH 2/2] avformat/mvdec: re-indent after last commit

2021-12-31 Thread John-Paul Stewart
Signed-off-by: John-Paul Stewart --- libavformat/mvdec.c | 64 ++--- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index 7493bcc762..469ac32092 100644 --- a/libavformat/mvdec.c +++ b/libavformat/mv

[FFmpeg-devel] [PATCH 1/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread John-Paul Stewart
Only allocate an audio stream if there is one in the data. Silicon Graphics movie format will contain default values (16 bit samples, 2 audio channels, 22050 Hz sample rate) even when no audio is present in the file. This confuses FFmpeg into thinking such an audio stream is present with 0 sample

[FFmpeg-devel] [PATCH 0/2] avformat/mvdec: make audio stream conditional

2021-12-31 Thread John-Paul Stewart
Recent discussion on the list led me to realize that libavformat was unconditionally creating an audio stream for all SGI movie format (version 2) files, even when no audio is present in the file. A sample of a movie file with no audio can be found at http://www.personalprojects.net/ffmpeg/s

Re: [FFmpeg-devel] [PATCH] http: make caching of redirect url optional

2021-12-31 Thread Ronald S. Bultje
Hi, On Mon, Dec 27, 2021 at 2:08 PM Ronald S. Bultje wrote: > Hi, > > On Mon, Dec 27, 2021 at 4:38 AM Eran Kornblau > wrote: > >> > -Original Message- >> > From: ffmpeg-devel On Behalf Of >> Ronald S. Bultje >> > Sent: Sunday, 26 December 2021 16:07 >> > To: FFmpeg development discussi

Re: [FFmpeg-devel] 5.0 release

2021-12-31 Thread Michael Niedermayer
On Fri, Dec 31, 2021 at 10:45:46PM +0530, Gyan Doshi wrote: > > > On 2021-12-31 10:22 pm, Michael Niedermayer wrote: > > On Tue, Dec 28, 2021 at 12:55:14AM +0100, Michael Niedermayer wrote: > > > On Wed, Dec 22, 2021 at 05:44:42PM +0100, Jean-Baptiste Kempf wrote: > > > > On Wed, 22 Dec 2021, at

[FFmpeg-devel] DNN data layout CHW or HWC and data normalization or denormalization?

2021-12-31 Thread Alex
Hi! Can any one tell me is it layout of DNNData->data are chw or hwc or nchw or nhwc? And how to perform convertion from hwc to chw and reverse? How to normalize and denormalize data (-1..0..1 <=> 0...255) ? ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

Re: [FFmpeg-devel] 5.0 release

2021-12-31 Thread Lynne
31 Dec 2021, 17:52 by mich...@niedermayer.cc: > On Tue, Dec 28, 2021 at 12:55:14AM +0100, Michael Niedermayer wrote: > >> On Wed, Dec 22, 2021 at 05:44:42PM +0100, Jean-Baptiste Kempf wrote: >> > On Wed, 22 Dec 2021, at 15:05, James Almer wrote: >> > > Is the December target to get into the featur

Re: [FFmpeg-devel] [PATCH v8 1/3] libavdevice/avfoundation.m: use AudioConvert, extend supported formats

2021-12-31 Thread Gyan Doshi
On 2021-12-31 11:12 pm, Romain Beauxis wrote: * Implement support for AudioConverter * Switch to AudioConverter's API to convert unsupported PCM formats (non-interleaved, non-packed) to supported formats * Minimize data copy. This fixes: https://trac.ffmpeg.org/ticket/9502 API ref: https:/

[FFmpeg-devel] [PATCH v8 3/3] libavdevice/avfoundation.m: Allow to select devices by unique ID

2021-12-31 Thread Romain Beauxis
Signed-off-by: Romain Beauxis — [Sorry for the noise but an issue came up with the previous set] This is the third patch of a series of 3 that fix, cleanup and enhance the avfoundation implementation for libavdevice. These patches come from an actual user-facing application relying on libavdevic

[FFmpeg-devel] [PATCH v8 2/3] libavdevice/avfoundation.m: Replace mutex-based concurrency handling in avfoundation.m by a thread-safe fifo queue with maximum length

2021-12-31 Thread Romain Beauxis
* Use a CMSimpleQueueEnqueue with maximum length to queue and process incoming audio and video frames. * Log avfoundation errors. * Use AVERROR_EXTERNAL instead of AVERROR(EIO) in avfoundation errors. Signed-off-by: Romain Beauxis — [Sorry for the noise but an issue came up with the previous set

[FFmpeg-devel] [PATCH v8 1/3] libavdevice/avfoundation.m: use AudioConvert, extend supported formats

2021-12-31 Thread Romain Beauxis
* Implement support for AudioConverter * Switch to AudioConverter's API to convert unsupported PCM formats (non-interleaved, non-packed) to supported formats * Minimize data copy. This fixes: https://trac.ffmpeg.org/ticket/9502 API ref: https://developer.apple.com/documentation/audiotoolbox/aud

Re: [FFmpeg-devel] 5.0 release

2021-12-31 Thread Gyan Doshi
On 2021-12-31 10:22 pm, Michael Niedermayer wrote: On Tue, Dec 28, 2021 at 12:55:14AM +0100, Michael Niedermayer wrote: On Wed, Dec 22, 2021 at 05:44:42PM +0100, Jean-Baptiste Kempf wrote: On Wed, 22 Dec 2021, at 15:05, James Almer wrote: Is the December target to get into the feature freez

[FFmpeg-devel] [PATCH] fate/libswcale: add missing samples dependency to sws-slice tests

2021-12-31 Thread James Almer
Signed-off-by: James Almer --- tests/fate/libswscale.mak | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/fate/libswscale.mak b/tests/fate/libswscale.mak index 599d27b0a5..cf9319ec44 100644 --- a/tests/fate/libswscale.mak +++ b/tests/fate/libswscale.mak @@ -15,8 +15

Re: [FFmpeg-devel] [PATCH 1/5] avformat/aviobuf: set AVIOContext->error on bprint buffer ENOMEM

2021-12-31 Thread Marton Balint
On Fri, 31 Dec 2021, Andreas Rheinhardt wrote: Marton Balint: This makes sure the error condition is kept in AVIOContext even if the user does not check the return value of avio_read_to_bprint or ff_read_line_to_bprint. Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 8 ++--

Re: [FFmpeg-devel] 5.0 release

2021-12-31 Thread Michael Niedermayer
On Tue, Dec 28, 2021 at 12:55:14AM +0100, Michael Niedermayer wrote: > On Wed, Dec 22, 2021 at 05:44:42PM +0100, Jean-Baptiste Kempf wrote: > > On Wed, 22 Dec 2021, at 15:05, James Almer wrote: > > > Is the December target to get into the feature freeze schedule from > > > distros? > > > > No, it

[FFmpeg-devel] [PATCH v7 3/3] libavdevice/avfoundation.m: Allow to select devices by unique ID

2021-12-31 Thread Romain Beauxis
Signed-off-by: Romain Beauxis — This is the third patch of a series of 3 that cleanup and enhance the avfoundation implementation for libavdevice. Changes: v2: None v3: * Switched unique ID to use system-prodvided unique ID * Implemented unique IDs for screen capture v4: Cleanup v5: Fix ind

[FFmpeg-devel] [PATCH v7 2/3] libavdevice/avfoundation.m: Replace mutex-based concurrency handling in avfoundation.m by a thread-safe fifo queue with maximum length

2021-12-31 Thread Romain Beauxis
* Use a CMSimpleQueueEnqueue with maximum length to queue and process incoming audio and video frames. * Log avfoundation errors. * Use AVERROR_EXTERNAL instead of AVERROR(EIO) in avfoundation errors. Signed-off-by: Romain Beauxis — This is the second patch of a series of 3 that fix, cleanup and

[FFmpeg-devel] [PATCH v7 1/3] libavdevice/avfoundation.m: use AudioConvert, extend supported formats

2021-12-31 Thread Romain Beauxis
* Implement support for AudioConverter * Switch to AudioConverter's API to convert unsupported PCM formats (non-interleaved, non-packed) to supported formats * Minimize data copy. This fixes: https://trac.ffmpeg.org/ticket/9502 API ref: https://developer.apple.com/documentation/audiotoolbox/aud

Re: [FFmpeg-devel] [PATCH v6 01/03] libavdevice/avfoundation.m: use AudioConvert, extend supported formats

2021-12-31 Thread Romain Beauxis
> On Dec 28, 2021, at 6:54 PM, Aman Karmani wrote: > > > > On Tue, Dec 28, 2021 at 2:50 PM Romain Beauxis wrote: > This is the first patch of a series of 3 that fix, cleanup and enhance the > avfoundation implementation for libavdevice. > > The patches have been submitted a couple of times

Re: [FFmpeg-devel] [PATCH v15 1/2] avformat/imf: Demuxer

2021-12-31 Thread Lynne
31 Dec 2021, 14:25 by z...@zanevaniperen.com: > > > On 31/12/21 21:19, Paul B Mahol wrote: > >> ++i instead of i++ >> > > You're right, I missed that. I'll submit a patch. > Revert it today or I will. I NAK'd it from entering 5.0. It requires more fuzzing, more testing and more reviewing. As for

Re: [FFmpeg-devel] [PATCH 04/11] avcodec/ac3tab: Unavpriv ac3_channel_layout_tab

2021-12-31 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2021-12-15 13:35:34) >> It is small (16 B) and therefore the overhead of exporting it more >> than outweighs the size savings from not having duplicated symbols: >> When the symbol is no longer avpriv, one saves twice the size of >> the string containing

Re: [FFmpeg-devel] [PATCH v15 1/2] avformat/imf: Demuxer

2021-12-31 Thread Zane van Iperen
On 31/12/21 21:19, Paul B Mahol wrote: ++i instead of i++ You're right, I missed that. I'll submit a patch. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, o

Re: [FFmpeg-devel] [PATCH 2/5] avformat/movenc: factorize data shifting

2021-12-31 Thread Andreas Rheinhardt
Marton Balint: > And move data shift function from movenc to utils. > > Signed-off-by: Marton Balint > --- > libavformat/internal.h | 7 ++ > libavformat/movenc.c | 55 ++--- > libavformat/utils.c| 56 ++ > 3

Re: [FFmpeg-devel] [PATCH 4/5] avformat/segafilmenc: use ff_format_shift_data for shifting

2021-12-31 Thread Andreas Rheinhardt
Marton Balint: > Signed-off-by: Marton Balint > --- > libavformat/segafilmenc.c | 51 --- > 1 file changed, 5 insertions(+), 46 deletions(-) > > diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c > index ff8cb66aca..737805faa6 100644 > --- a/li

Re: [FFmpeg-devel] [PATCH 6/7] lavu/fifo: drop useless comments

2021-12-31 Thread Andreas Rheinhardt
Anton Khirnov: > This object was never intended to be thread-safe, so these carry no > useful information. > --- > libavutil/fifo.c | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/libavutil/fifo.c b/libavutil/fifo.c > index 171c1aa9cd..f38e8ff089 100644 > --- a/libavutil/fifo.c > +++

[FFmpeg-devel] [PATCH v3 1/4] avformat/movenc: fix assert failure in get_cluster_duration()

2021-12-31 Thread Zhao Zhili
When editlist is disabled, the workaournd method of shift dts to zero and increase the first sample duration doesn't work if the timestamp is larger than mp4 spec restriction (e.g., sample_delta in stts entry). Further more, it triggers get_cluster_duration() assert failure. This patch will drop la

[FFmpeg-devel] [PATCH v3 2/4] avformat/movenc: add missing timestamp check when peek from interleave queues

2021-12-31 Thread Zhao Zhili
--- libavformat/movenc.c | 80 +--- 1 file changed, 45 insertions(+), 35 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index f5bb785b01..9b3bd99e97 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5403,6 +5403,45 @@ s

[FFmpeg-devel] [PATCH v3 4/4] avformat/tests/movenc: test dealing with abnormal timestamp

2021-12-31 Thread Zhao Zhili
--- libavformat/tests/movenc.c | 30 +- tests/ref/fate/movenc | 14 ++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index 2af72f11c7..79de20ee75 100644 --- a/libavformat/tests/mov

[FFmpeg-devel] [PATCH v3 3/4] avformat/movenc: check track start_dts before use it

2021-12-31 Thread Zhao Zhili
--- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 9b3bd99e97..faae684fdb 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5465,7 +5465,7 @@ static int mov_flush_fragment(AVFormatContext *s,

Re: [FFmpeg-devel] [PATCH 1/7] lavc/flac_parser: use a custom FIFO implementation

2021-12-31 Thread Andreas Rheinhardt
Anton Khirnov: > FLAC parser currently uses AVFifoBuffer in a highly non-trivial manner, > modifying its "internals" (the whole struct is currently public, but no > other code touches its contents directly). E.g. it does not use any > av_fifo functions for reading the FIFO contents, but implements

Re: [FFmpeg-devel] [PATCH v15 1/2] avformat/imf: Demuxer

2021-12-31 Thread Paul B Mahol
++i instead of i++ On Fri, Dec 31, 2021 at 11:40 AM Zane van Iperen wrote: > > > On 31/12/21 19:40, Paul B Mahol wrote: > > Why was this applied? > > >> > >> Both patches lgtm, I'll apply in a few days if no objections. > >> > > No one objected. > > > > It still breaks style of ffmpeg code, just

[FFmpeg-devel] [PATCH 6/7] lavu/fifo: drop useless comments

2021-12-31 Thread Anton Khirnov
This object was never intended to be thread-safe, so these carry no useful information. --- libavutil/fifo.c | 5 - 1 file changed, 5 deletions(-) diff --git a/libavutil/fifo.c b/libavutil/fifo.c index 171c1aa9cd..f38e8ff089 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -144,7 +144,

[FFmpeg-devel] [PATCH 7/7] lavu/fifo: return errors on trying to read/write too much

2021-12-31 Thread Anton Khirnov
Trying to write too much will currently overwrite previous data. Trying to read too much will either av_assert2() in av_fifo_drain() or return old data. Trying to peek too much will either av_assert2() in av_fifo_generic_peek_at() or return old data. Return an error code in all these cases, which

[FFmpeg-devel] [PATCH 2/7] lavf/dvenc: replace av_fifo_peek2() with av_fifo_generic_peek_at()

2021-12-31 Thread Anton Khirnov
This is the only remaining caller of av_fifo_peek2(), which will be deprecated. --- libavformat/dvenc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index 9a853ba7ce..b76539b59f 100644 --- a/libavformat/dvenc.c +++ b/libavformat

[FFmpeg-devel] [PATCH 5/7] lavu/fifo: do not copy the whole fifo when reallocating

2021-12-31 Thread Anton Khirnov
av_realloc() the buffer and only move the part of the ring buffer that needs it. Also avoids allocating a temporary fifo. --- libavutil/fifo.c | 34 -- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/libavutil/fifo.c b/libavutil/fifo.c index 5eee18a8

[FFmpeg-devel] [PATCH 3/7] lavu/fifo: deprecate av_fifo_peek2()

2021-12-31 Thread Anton Khirnov
It returns a pointer inside the fifo's buffer, which cannot be safely used without accessing AVFifoBuffer internals. It is easier and safer to use av_fifo_generic_peek_at(). --- libavutil/fifo.h | 4 libavutil/tests/fifo.c | 8 libavutil/version.h| 1 + tests/ref/fate/fi

[FFmpeg-devel] [PATCH 1/7] lavc/flac_parser: use a custom FIFO implementation

2021-12-31 Thread Anton Khirnov
FLAC parser currently uses AVFifoBuffer in a highly non-trivial manner, modifying its "internals" (the whole struct is currently public, but no other code touches its contents directly). E.g. it does not use any av_fifo functions for reading the FIFO contents, but implements its own. Reimplement t

[FFmpeg-devel] [PATCH 4/7] lavu/fifo: simplify av_fifo_alloc()

2021-12-31 Thread Anton Khirnov
Turn it into a wrapper around av_fifo_alloc_array(). --- libavutil/fifo.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libavutil/fifo.c b/libavutil/fifo.c index 1060aedf13..5eee18a8c8 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -24,9 +24,10 @@ #i

Re: [FFmpeg-devel] [PATCH 1/5] avformat/aviobuf: set AVIOContext->error on bprint buffer ENOMEM

2021-12-31 Thread Andreas Rheinhardt
Marton Balint: > This makes sure the error condition is kept in AVIOContext even if the user > does not check the return value of avio_read_to_bprint or > ff_read_line_to_bprint. > > Signed-off-by: Marton Balint > --- > libavformat/aviobuf.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 del

Re: [FFmpeg-devel] [PATCH v15 1/2] avformat/imf: Demuxer

2021-12-31 Thread Zane van Iperen
On 31/12/21 19:40, Paul B Mahol wrote: Why was this applied? Both patches lgtm, I'll apply in a few days if no objections. No one objected. It still breaks style of ffmpeg code, just from quick glance. Which parts specifically? The main potential issue I can see is the long scanf(

Re: [FFmpeg-devel] [PATCH 01/14] avcodec/mjpegenc: Use custom close function directly

2021-12-31 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Currently, ff_mpv_encode_end() is the close function of > the two MJPEG-based encoders; it calls ff_mjpeg_encode_close() > for them which adds a check to the generic code. > This commit reverses the order of this relationship: > The MJPEG encoders directly use a custom close f

Re: [FFmpeg-devel] [PATCH v15 1/2] avformat/imf: Demuxer

2021-12-31 Thread Paul B Mahol
Why was this applied? It still breaks style of ffmpeg code, just from quick glance. Please revert or I leave this project forever. On Tue, Dec 28, 2021 at 6:28 AM Zane van Iperen wrote: > > > On 27/12/21 10:47, p...@sandflow.com wrote: > > From: Pierre-Anthony Lemieux > > > > Signed-off-by:

Re: [FFmpeg-devel] [PATCH v2] hevcdec: skip slices with missing PPS instead of skipping the entire packet

2021-12-31 Thread Andreas Rheinhardt
James Almer: > > > On 12/30/2021 12:26 PM, Hendrik Leppkes wrote: >> On Thu, Dec 30, 2021 at 4:13 PM James Almer wrote: >>> >>> >>> >>> On 12/30/2021 12:08 PM, Hendrik Leppkes wrote: Aborting decoding of the entire packet on a missing PPS can result in missing the actual PPS on streams

Re: [FFmpeg-devel] [PATCH v4] avformat/mov: add option max_stts_delta

2021-12-31 Thread Gyan Doshi
Pushed as 9cfc7a244052dced520776ff0ecc6f0a9390f62b On 2021-12-28 10:12 pm, Gyan Doshi wrote: Very high stts sample deltas may occasionally be intended but usually they are written in error or used to store a negative value for dts correction when treated as signed 32-bit integers. This option l