Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_opt: Check creation of new program

2022-08-25 Thread Gyan Doshi
On 2022-08-26 02:45 am, Andreas Rheinhardt wrote: Fixes Coverity issue #1512413. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg_opt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 8128dcf9fb..aec94dc0f4 100644 ---

Re: [FFmpeg-devel] [PATCH] avformat/tests/imf: Test ff_imf_parse_cpl_from_xml_dom cleanup on error

2022-08-25 Thread Pierre-Anthony Lemieux
On Thu, Aug 25, 2022 at 1:58 PM Andreas Rheinhardt wrote: > > Improves the test; also should fix Coverity issue #1512408. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/tests/imf.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git

Re: [FFmpeg-devel] [PATCH 1/2] avformat/imfdec: check track valid before use it

2022-08-25 Thread Pierre-Anthony Lemieux
Since we are protecting against the algorithm within get_next_track_with_minimum_timestamp() return NULL, should this patch also include immediately returning from imf_read_packet() if get_next_track_with_minimum_timestamp() returns NULL? On Thu, Aug 25, 2022 at 7:53 PM Steven Liu wrote: > > fix

[FFmpeg-devel] [PATCH v1] avformat/imfdec: check if Asset/Id exists before trying to read it

2022-08-25 Thread pal
From: Pierre-Anthony Lemieux Fixes Coverity issue #1512406 --- libavformat/imfdec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5bbe7a53f8..fde91a6419 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@

[FFmpeg-devel] [PATCH 2/2] avformat/dashdec: check val before xmlFree it

2022-08-25 Thread Steven Liu
fix CID: 1512404 When there have no val value should not xmlFree it. Signed-off-by: Steven Liu --- libavformat/dashdec.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 63bf7e96a5..bf9adf2183 100644 ---

[FFmpeg-devel] [PATCH 1/2] avformat/imfdec: check track valid before use it

2022-08-25 Thread Steven Liu
fix CID: 1512414 Signed-off-by: Steven Liu --- libavformat/imfdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5bbe7a53f8..a97dcc3b8b 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -697,8 +697,9 @@

Re: [FFmpeg-devel] [PATCH 01/11] avcodec/tests/avcodec: Mark frame-thrd encoder incompatible with delay

2022-08-25 Thread Andreas Rheinhardt
Andreas Rheinhardt: > The API for frame-threaded encoders only works > for one-in-one-out encoders. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/tests/avcodec.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c >

[FFmpeg-devel] [PATCH v2] avcodec/internal: Fix outdated comment

2022-08-25 Thread Andreas Rheinhardt
The legacy API is long gone. Signed-off-by: Andreas Rheinhardt --- Now with a more concise description than v1. libavcodec/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 52e7f111c1..e8c24d81bd 100644 ---

[FFmpeg-devel] [PATCH] fftools/ffmpeg_opt: Check creation of new program

2022-08-25 Thread Andreas Rheinhardt
Fixes Coverity issue #1512413. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg_opt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 8128dcf9fb..aec94dc0f4 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -2769,6

Re: [FFmpeg-devel] [PATCH] avformat/imf_cpl: Check the right variable

2022-08-25 Thread Pierre-Anthony Lemieux
LGTM On Thu, Aug 25, 2022 at 2:01 PM Andreas Rheinhardt wrote: > > Fixes Coverity issue #1512407. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/imf_cpl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c > index

[FFmpeg-devel] [PATCH] avformat/imf_cpl: Check the right variable

2022-08-25 Thread Andreas Rheinhardt
Fixes Coverity issue #1512407. Signed-off-by: Andreas Rheinhardt --- libavformat/imf_cpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c index 4acc20feee..474db6b7f5 100644 --- a/libavformat/imf_cpl.c +++

[FFmpeg-devel] [PATCH] avformat/tests/imf: Test ff_imf_parse_cpl_from_xml_dom cleanup on error

2022-08-25 Thread Andreas Rheinhardt
Improves the test; also should fix Coverity issue #1512408. Signed-off-by: Andreas Rheinhardt --- libavformat/tests/imf.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index e65629ccbc..a7b2ed3b4d 100644 ---

Re: [FFmpeg-devel] [FFmpeg-devel v10 7/9] Extended MOV muxer to handle EVC video content

2022-08-25 Thread Andreas Rheinhardt
Dawid Kozinski: > - Changes in mov_write_video_tag function to handle EVC elementary stream > - Provided structure EVCDecoderConfigurationRecord that specifies the decoder > configuration information for ISO/IEC 23094-1 video content > > Signed-off-by: Dawid Kozinski > --- >

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: Fix compilation

2022-08-25 Thread Andreas Rheinhardt
Andreas Rheinhardt: > The struct aom_codec_ctx for the encoder is part of the > AOMEncoderContext, it is not separately allocated. > Therefore 5bab794e4aaed55d3146723974ffb5ad792617ab broke compilation. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/libaomenc.c | 2 +- > 1 file

[FFmpeg-devel] [PATCH] avcodec/libaomenc: Fix compilation

2022-08-25 Thread Andreas Rheinhardt
The struct aom_codec_ctx for the encoder is part of the AOMEncoderContext, it is not separately allocated. Therefore 5bab794e4aaed55d3146723974ffb5ad792617ab broke compilation. Signed-off-by: Andreas Rheinhardt --- libavcodec/libaomenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: fix compile after 5bab794

2022-08-25 Thread James Zern
On Thu, Aug 25, 2022 at 12:30 PM James Zern wrote: > > encoder is a struct, not a pointer; use '.' to access iface. > > Signed-off-by: James Zern > --- > libavcodec/libaomenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Already fixed. > diff --git a/libavcodec/libaomenc.c

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: add init cleanup flag

2022-08-25 Thread James Zern
On Thu, Aug 25, 2022 at 12:28 PM James Almer wrote: > > On 8/25/2022 4:21 PM, James Zern wrote: > > On Thu, Aug 25, 2022 at 10:39 AM James Almer wrote: > >> > >> On 8/25/2022 2:34 PM, James Zern wrote: > >>> On Thu, Aug 25, 2022 at 10:16 AM James Almer wrote: > > Signed-off-by: James

[FFmpeg-devel] [PATCH] avcodec/libaomenc: fix compile after 5bab794

2022-08-25 Thread James Zern
encoder is a struct, not a pointer; use '.' to access iface. Signed-off-by: James Zern --- libavcodec/libaomenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index a82b933c18..1e89b7e3a8 100644 --- a/libavcodec/libaomenc.c

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: add init cleanup flag

2022-08-25 Thread James Almer
On 8/25/2022 4:21 PM, James Zern wrote: On Thu, Aug 25, 2022 at 10:39 AM James Almer wrote: On 8/25/2022 2:34 PM, James Zern wrote: On Thu, Aug 25, 2022 at 10:16 AM James Almer wrote: Signed-off-by: James Almer --- There doesn't seem to be any proper API to check if an encoder is open.

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: add init cleanup flag

2022-08-25 Thread James Zern
On Thu, Aug 25, 2022 at 10:39 AM James Almer wrote: > > On 8/25/2022 2:34 PM, James Zern wrote: > > On Thu, Aug 25, 2022 at 10:16 AM James Almer wrote: > >> > >> Signed-off-by: James Almer > >> --- > >> There doesn't seem to be any proper API to check if an encoder is open. > >> > > > > true. >

Re: [FFmpeg-devel] [PATCH 18/18] lavf/dv: do not continuously set stream timebase

2022-08-25 Thread Marton Balint
On Wed, 24 Aug 2022, Anton Khirnov wrote: The code will call avpriv_set_pts_info() for each video frame, possibly setting a different timebase if the stream framerate changes. This violates API conventions, as the timebase is supposed to stay constant after stream creation. Change the

[FFmpeg-devel] [PATCH v2] avcodec/libaomenc: remove one memcpy when queueing packets

2022-08-25 Thread James Almer
Don't use an intermediary buffer. Achieve this by replacing FrameListData with a PacketList, and by allocating and populating every packet's payload before inserting them into the list. Signed-off-by: James Almer --- libavcodec/libaomenc.c | 201 +++-- 1 file

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: add init cleanup flag

2022-08-25 Thread James Almer
On 8/25/2022 2:34 PM, James Zern wrote: On Thu, Aug 25, 2022 at 10:16 AM James Almer wrote: Signed-off-by: James Almer --- There doesn't seem to be any proper API to check if an encoder is open. true. libavcodec/libaomenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: add init cleanup flag

2022-08-25 Thread James Zern
On Thu, Aug 25, 2022 at 10:16 AM James Almer wrote: > > Signed-off-by: James Almer > --- > There doesn't seem to be any proper API to check if an encoder is open. > true. > libavcodec/libaomenc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > lgtm. > diff --git

[FFmpeg-devel] [PATCH] avcodec/libaomenc: add init cleanup flag

2022-08-25 Thread James Almer
Signed-off-by: James Almer --- There doesn't seem to be any proper API to check if an encoder is open. libavcodec/libaomenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 485f554165..fb9a6ff8b2 100644 ---

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: remove one memcpy when queueing packets

2022-08-25 Thread James Almer
On 8/25/2022 1:29 PM, Andreas Rheinhardt wrote: James Almer: Don't use an intermediary buffer. Achieve this by replacing FrameListData with a PacketList, and by allocating and populating every packet's payload before inserting them into the list. Signed-off-by: James Almer ---

[FFmpeg-devel] [PATCH 16/21] avcodec/internal: Move ff_set_sar() to decode.h

2022-08-25 Thread Andreas Rheinhardt
Only used by decoders, as the SAR has to be set by the user when encoding. Signed-off-by: Andreas Rheinhardt --- libavcodec/av1dec.c | 1 + libavcodec/decode.h | 6 ++ libavcodec/dvdec.c | 1 + libavcodec/exr.c| 1 + libavcodec/h264_slice.c | 1 + libavcodec/hevcdec.c

[FFmpeg-devel] [PATCH 21/21] avcodec/targa: Fix indentation

2022-08-25 Thread Andreas Rheinhardt
Forgotten after 1e85a698c01133a7f8d35502d5901e3b65fa3317. Signed-off-by: Andreas Rheinhardt --- libavcodec/targa.c | 75 +++--- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/libavcodec/targa.c b/libavcodec/targa.c index

[FFmpeg-devel] [PATCH 20/21] avcodec/internal: Move ff_dvdsub_parse_palette() to new header dvdsub.h

2022-08-25 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dvdsub.c| 3 ++- libavcodec/dvdsub.h| 26 ++ libavcodec/dvdsubdec.c | 2 +- libavcodec/dvdsubenc.c | 2 +- libavcodec/internal.h | 2 -- 5 files changed, 30 insertions(+), 5 deletions(-) create mode 100644

[FFmpeg-devel] [PATCH 19/21] avcodec/internal: Move ff_side_data_update_matrix_encoding to decode.h

2022-08-25 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/ac3dec.c | 1 - libavcodec/dca_core.c | 1 - libavcodec/dca_lbr.c | 1 - libavcodec/dca_xll.c | 1 - libavcodec/decode.h | 6 ++ libavcodec/internal.h | 6 -- libavcodec/mlpdec.c | 3 --- 7 files changed, 6 insertions(+), 13

[FFmpeg-devel] [PATCH 18/21] avcodec/internal: Move ff_samples_to_time_base() to encode.h

2022-08-25 Thread Andreas Rheinhardt
It is only used by encoders; in fact, AVCodecContext.time_base is only used by encoders, so it is only useful for encoders. Also constify the AVCodecContext parameter in it. Also fixup the other headers a bit while removing now unnecessary internal.h inclusions. Signed-off-by: Andreas

[FFmpeg-devel] [PATCH 17/21] avcodec/internal: Move ff_set_dimensions() to decode.h

2022-08-25 Thread Andreas Rheinhardt
Decoder-only, as the dimensions are set by the user when encoding. Also fixup the other headers a bit while removing unnecessary internal.h inclusions. Signed-off-by: Andreas Rheinhardt --- libavcodec/agm.c | 3 --- libavcodec/aliaspixdec.c | 1 - libavcodec/ansi.c

[FFmpeg-devel] [PATCH 15/21] avcodec/internal: Move ff_get_buffer() to decode.h

2022-08-25 Thread Andreas Rheinhardt
Only used by decoders (encoders have ff_encode_alloc_frame()). Also clean up the other headers a bit while removing now redundant internal.h inclusions. Signed-off-by: Andreas Rheinhardt --- libavcodec/012v.c | 2 +- libavcodec/4xm.c | 2 +- libavcodec/8bps.c

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: remove one memcpy when queueing packets

2022-08-25 Thread Andreas Rheinhardt
James Almer: > Don't use an intermediary buffer. Achieve this by replacing FrameListData with > a PacketList, and by allocating and populating every packet's payload before > inserting them into the list. > > Signed-off-by: James Almer > --- > libavcodec/libaomenc.c | 195

Re: [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway

2022-08-25 Thread Kieran Kunhya
> > You will never fit all the features of complex > > containers like MXF, MP4, TS (and for argument's sake XML) inside a > > generalised framework like FFmpeg. > > Maybe true but the reason is not that it cant be dont just that there are > features noone uses and noone needs. > I do know some

Re: [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway

2022-08-25 Thread Michael Niedermayer
On Wed, Aug 24, 2022 at 10:18:04PM +0100, Kieran Kunhya wrote: > > > > for libxml2 these problems are less likely to hit us as we likely never > > need a > > "new xml feature" but for a (de)muxer we quite likely will need the > > latests version on every platform. > > Also we have regression

[FFmpeg-devel] [FFmpeg-devel v10 9/9] Changes in Changelog and MAINTAINERS files

2022-08-25 Thread Dawid Kozinski
- Changelog update - MAINTAINERS update Signed-off-by: Dawid Kozinski --- Changelog | 4 ++-- MAINTAINERS | 5 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index fa83786a20..9631262858 100644 --- a/Changelog +++ b/Changelog @@ -36,7 +36,8 @@

[FFmpeg-devel] [FFmpeg-devel v10 8/9] Extended MOV demuxer to handle EVC video content

2022-08-25 Thread Dawid Kozinski
- Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 1d8c5b2904..be9501655b 100644 --- a/libavformat/mov.c +++

[FFmpeg-devel] [FFmpeg-devel v10 7/9] Extended MOV muxer to handle EVC video content

2022-08-25 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle EVC elementary stream - Provided structure EVCDecoderConfigurationRecord that specifies the decoder configuration information for ISO/IEC 23094-1 video content Signed-off-by: Dawid Kozinski --- libavformat/Makefile| 2 +-

[FFmpeg-devel] [FFmpeg-devel v10 6/9] Provided support for EVC decoder

2022-08-25 Thread Dawid Kozinski
- Added EVC decoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xevd wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/decoders.texi | 24 +++ doc/general_contents.texi | 10 +- libavcodec/Makefile

[FFmpeg-devel] [FFmpeg-devel v10 5/9] Provided support for EVC encoder

2022-08-25 Thread Dawid Kozinski
- Added EVC encoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xeve wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/encoders.texi | 69 + doc/general_contents.texi | 11 + libavcodec/Makefile

[FFmpeg-devel] [FFmpeg-devel v10 4/9] Added demuxer to handle reading EVC video files

2022-08-25 Thread Dawid Kozinski
- Provided AVInputFormat structure describing EVC input format (ff_evc_demuxer) Signed-off-by: Dawid Kozinski --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/evcdec.c | 142 +++ 3 files changed, 144 insertions(+)

[FFmpeg-devel] [FFmpeg-devel v10 3/9] Added muxer to handle writing EVC encoded data into file or output bytestream

2022-08-25 Thread Dawid Kozinski
- Provided AVOutputFormat structure describing EVC output format (ff_evc_muxer) - Added documentation for EVC muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 13

[FFmpeg-devel] [FFmpeg-devel v10 2/9] Added parser implementaion for EVC format

2022-08-25 Thread Dawid Kozinski
Signed-off-by: Dawid Kozinski --- libavcodec/Makefile | 1 + libavcodec/evc_parser.c | 758 libavcodec/parsers.c| 1 + 3 files changed, 760 insertions(+) create mode 100644 libavcodec/evc_parser.c diff --git a/libavcodec/Makefile

[FFmpeg-devel] [FFmpeg-devel v10 1/9] MPEG-5 EVC codec registration

2022-08-25 Thread Dawid Kozinski
Added prerequisites that must be met before providing support for the MPEG-5 EVC codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for EVC codec Signed-off-by: Dawid Kozinski --- libavcodec/avcodec.h|

Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_showinfo: add wallclock option

2022-08-25 Thread Michael Riedl
The patchset allows to control whether to print date, time or both. In practical use, I ended up printing a line with the date on startup and print only time information, e.g. like this: 01:40:42.467 ffmpeg version 5.1... 01:40:42.467 built with ... 01:40:42.468 Execution Date: 2022-08-16

Re: [FFmpeg-devel] [PATCH] lavu/tx: implement aarch64 NEON SIMD

2022-08-25 Thread Martin Storsjö
On Sun, 14 Aug 2022, Lynne wrote: The fastest fast Fourier transform in not just the west, but the world, now for the most popular toy ISA. On a high level, it follows the design of the AVX2 version closely, with the exception that the input is slightly less permuted as we don't have to do

Re: [FFmpeg-devel] [PATCH 16/18] lavf/dv: set audio bitrate only at stream creation

2022-08-25 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-08-24 16:33:22) > Anton Khirnov: > > Demuxers are not supposed to update AVCodecParameters after the stream > > was seen by the caller. This value is not important enough to support > > dynamic updates for. > > --- > > libavformat/dv.c | 2 +- > > 1 file changed,

[FFmpeg-devel] [PATCH] lavc/dv: remove ff_dvvideo_init()

2022-08-25 Thread Anton Khirnov
The function contains only two assignments, setting DVVideoContext.avctx and AVCodecContext.chroma_sample_location. However, the decoder does not use the former, and the encoder should not be setting the latter. Therefore move the first assignment to dvenc and the second to dvdec. Make the

Re: [FFmpeg-devel] [PATCH 05/18] lavc/dv: remove ff_dvvideo_init()

2022-08-25 Thread Anton Khirnov
Quoting Anton Khirnov (2022-08-25 11:48:27) > Quoting Andreas Rheinhardt (2022-08-24 14:27:43) > > There is actually another issue here: Encoders are not supposed to set > > chroma_sample_location at all according to the documentation. I sent a > > patch to implement this > >

Re: [FFmpeg-devel] [PATCH 05/18] lavc/dv: remove ff_dvvideo_init()

2022-08-25 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-08-24 14:27:43) > There is actually another issue here: Encoders are not supposed to set > chroma_sample_location at all according to the documentation. I sent a > patch to implement this > (https://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/298518.html -- it >

Re: [FFmpeg-devel] [PATCH 03/18] lavf/dv: always provide avpriv_dv_* symbols

2022-08-25 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-08-24 18:25:48) > > This is unnecessary as the Makefile above ensures that dv.o is built > when iec61883 is built. For a given build, yes. But it is perfectly legal to swap out SOs with different sets of enabled components. E.g. Debian has libav* and libav*-extra

[FFmpeg-devel] [PATCH 6/6] fftools/ffmpeg: use a separate counter for encoded packet data size

2022-08-25 Thread Anton Khirnov
update_video_stats() currently uses OutputStream.data_size to print the total size of the encoded stream so far and the average bitrate. However, that field is updated in the muxer thread, right before the packet is sent to the muxer. Not only is this racy, but the numbers may not match even if

[FFmpeg-devel] [PATCH 4/6] fftools/ffmpeg: drop OutputStream.enc

2022-08-25 Thread Anton Khirnov
It is either equal to OutputStream.enc_ctx->codec, or NULL when enc_ctx is NULL. Replace the use of enc with enc_ctx->codec, or the equivalent enc_ctx->codec_* fields where more convenient. --- fftools/ffmpeg.c| 27 +- fftools/ffmpeg.h| 1 -

[FFmpeg-devel] [PATCH 5/6] fftools/ffmpeg: drop OutputStream.fps_mode

2022-08-25 Thread Anton Khirnov
It is only used within new_video_stream(), so make it a local variable there. --- fftools/ffmpeg.h | 1 - fftools/ffmpeg_opt.c | 8 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 68f24bd1d3..481b836d30 100644 ---

[FFmpeg-devel] [PATCH 3/6] fftools/ffmpeg_filter: remove an always-true check

2022-08-25 Thread Anton Khirnov
ost->enc is always non-NULL here, since - this code is never called for streamcopy - opening the output file will fail if an encoder cannot be found, so filters are never initialized --- fftools/ffmpeg_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH 2/6] fftools/ffmpeg_filter: remove an always-false check

2022-08-25 Thread Anton Khirnov
This code cannot be triggered, since after 90944ee3ab7 opening the output file will abort if an encoder cannot be found and streamcopy was not explicitly requested. --- fftools/ffmpeg_filter.c | 8 1 file changed, 8 deletions(-) diff --git a/fftools/ffmpeg_filter.c

[FFmpeg-devel] [PATCH 1/6] fftools/ffmpeg: remove a stale extern declaration

2022-08-25 Thread Anton Khirnov
Forgotten in 8cbf229c941b3c77a756bff05d0ceb5f4f2219c5 --- fftools/ffmpeg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 921e579c32..50654bf8db 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -650,7 +650,6 @@ extern float

Re: [FFmpeg-devel] [PATCH 2/3] avisynth: use AviSynth+'s frame properties to set various fields

2022-08-25 Thread Steinar Apalnes
tor. 25. aug. 2022 kl. 02:11 skrev Stephen Hutchinson : > On 8/24/22 1:04 PM, Steinar Apalnes wrote: > > tir. 8. feb. 2022 kl. 12:03 skrev Stephen Hutchinson : > > > >> * Field Order > >> * Chroma Location > >> * Color Transfer Characteristics > >> * Color Range > >> * Color Primaries > >> *