[FFmpeg-cvslog] bsf: use standard include paths

2024-04-09 Thread Andrew Kelley
ffmpeg | branch: master | Andrew Kelley | Tue Apr 9 14:13:34 2024 -0700| [41b73ae883ec2a70c814e394de0e5ae5f1f13e87] | committer: James Almer bsf: use standard include paths Removes the special -I flag specified in the avcodec/bsf/ subdirectory. This makes code copy-pastable to other parts

[FFmpeg-cvslog] avcodec/libsvt1: check return value of send/receive functions

2024-04-09 Thread James Almer
ffmpeg | branch: master | James Almer | Tue Apr 9 10:05:09 2024 -0300| [9dbc9a0f9755e769793975278570b7eb6c8870e4] | committer: James Almer avcodec/libsvt1: check return value of send/receive functions Reviewed-by: Sean McGovern Signed-off-by: James Almer >

[FFmpeg-cvslog] avformat/mov_chan: add support for omitted_channel bitmask in chnl atom

2024-04-09 Thread Marton Balint
ffmpeg | branch: master | Marton Balint | Mon Apr 1 20:12:48 2024 +0200| [c38f785be4aec324f6fd534bdd2bc16d631ac9b4] | committer: Marton Balint avformat/mov_chan: add support for omitted_channel bitmask in chnl atom Signed-off-by: Marton Balint >

[FFmpeg-cvslog] avformat/hlsenc: use a slash separator even in win32

2024-04-09 Thread Marton Balint
ffmpeg | branch: master | Marton Balint | Sun Mar 31 20:50:31 2024 +0200| [7801451376d6acda08f6ee2b1cefd02a9fcf0857] | committer: Marton Balint avformat/hlsenc: use a slash separator even in win32 We don't know if the protocol used is referring to a local file or a remote resource, so it is

[FFmpeg-cvslog] avformat/mov_chan: respect channel order when parsing and creating chnl atom

2024-04-09 Thread Marton Balint
ffmpeg | branch: master | Marton Balint | Mon Apr 1 18:28:21 2024 +0200| [92e7a9a4d554d9baded1e0c12ccac8ba7ed072a8] | committer: Marton Balint avformat/mov_chan: respect channel order when parsing and creating chnl atom Previously we always assumed that the channels are in native order, even

[FFmpeg-cvslog] avfilter/buffersrc: never override channel count in av_buffersrc_add_frame_flags

2024-04-09 Thread Marton Balint
ffmpeg | branch: master | Marton Balint | Sun Mar 31 20:28:13 2024 +0200| [4721b9f15fc8487d718cce918f51db5b7734a942] | committer: Marton Balint avfilter/buffersrc: never override channel count in av_buffersrc_add_frame_flags Overriding unknown layouts with the negotiated layout is OK, but the

[FFmpeg-cvslog] avformat/mov_chan: factorize some layout map search functions

2024-04-09 Thread Marton Balint
ffmpeg | branch: master | Marton Balint | Mon Apr 1 14:31:26 2024 +0200| [da0fe26379c8af68a95be413afa2b48c175ecc9d] | committer: Marton Balint avformat/mov_chan: factorize some layout map search functions Signed-off-by: Marton Balint >

[FFmpeg-cvslog] avformat/mov_chan: check channel count of layout tags at compile time

2024-04-09 Thread Marton Balint
ffmpeg | branch: master | Marton Balint | Mon Apr 1 13:19:13 2024 +0200| [c68dc3e5f1211c8cd9c7c9b04449b78211b46770] | committer: Marton Balint avformat/mov_chan: check channel count of layout tags at compile time We can do this by using an X-macro for channel map declaration and doing a

[FFmpeg-cvslog] aarch64/ac3dsp: simplify the end of ff_ac3_sum_square_butterfly_float_neon

2024-04-09 Thread Martin Storsjö
ffmpeg | branch: master | Martin Storsjö | Mon Apr 8 13:57:05 2024 +0300| [359b6a7f8aec3736451f5179deb98f173fbff0dd] | committer: J. Dekker aarch64/ac3dsp: simplify the end of ff_ac3_sum_square_butterfly_float_neon Before: Cortex A53 A72 A78 M1

[FFmpeg-cvslog] lavc/vvc: Fix out-of-bounds array access

2024-04-09 Thread Frank Plowman
ffmpeg | branch: master | Frank Plowman | Tue Apr 9 09:11:39 2024 +| [1c0149359ac7e3c95aea083250603122887417c6] | committer: Nuo Mi lavc/vvc: Fix out-of-bounds array access The 2 which has been changed to an 8 in the array length expression is the maximum value of sps_bitdepth_minus8.

[FFmpeg-cvslog] lavc/vvc: Fix left shifts of negative values

2024-04-09 Thread Frank Plowman
ffmpeg | branch: master | Frank Plowman | Mon Apr 8 16:07:02 2024 +| [b4baa4c0b3839387361077545765b53cd1153279] | committer: Nuo Mi lavc/vvc: Fix left shifts of negative values All these variables lie in the range [-12..12] Signed-off-by: Frank Plowman >

[FFmpeg-cvslog] lavc/vvc: Avoid overflow in coeff scale intermediate

2024-04-09 Thread Frank Plowman
ffmpeg | branch: master | Frank Plowman | Tue Apr 9 07:55:52 2024 +| [2b7e79e8905bc9dc0ee9c9a9e313f38c31de4b0a] | committer: Nuo Mi lavc/vvc: Avoid overflow in coeff scale intermediate Make intermediate result 64-bits to avoid an overflow before the right shift. Signed-off-by: Frank

[FFmpeg-cvslog] lavc/vvc: Fix buffer overread in CABAC

2024-04-09 Thread Frank Plowman
ffmpeg | branch: master | Frank Plowman | Tue Apr 9 07:55:11 2024 +| [fcf74c5ebc520a53758eb410003fc8e814873053] | committer: Nuo Mi lavc/vvc: Fix buffer overread in CABAC The size variable here is taken as gospel for the bounds of the input buffer in later logic. Clamp it to ensure that

[FFmpeg-cvslog] lavc/vvc_parser: Fix integer overflow calculating framerate

2024-04-09 Thread Frank Plowman
ffmpeg | branch: master | Frank Plowman | Mon Apr 8 18:20:59 2024 +| [f499503073804e55540cad13743849a791449a98] | committer: Nuo Mi lavc/vvc_parser: Fix integer overflow calculating framerate num_units_in_tick and time_scale are both 32-bit unsigned integers. Storing them as ints was

[FFmpeg-cvslog] ffbuild/libversion.sh: add shebang

2024-04-09 Thread J . Dekker
ffmpeg | branch: master | J. Dekker | Tue Apr 9 11:52:00 2024 +0200| [fcfd17dbb4a6cf270cdd82e91c21a5efdc878d12] | committer: J. Dekker ffbuild/libversion.sh: add shebang The implicit interpreter is dependent on the environment, and isn't guaranteed to be /bin/sh. Some packagers call this

[FFmpeg-cvslog] configure, etc: switch to shebang without space

2024-04-09 Thread J . Dekker
ffmpeg | branch: master | J. Dekker | Tue Apr 9 15:31:13 2024 +0200| [67e2f8b6bf5a44fa8083f90096de6131601879b4] | committer: J. Dekker configure, etc: switch to shebang without space Note that the config.sh file is left without a shebang, this file is supposed to be sourced into the current

[FFmpeg-cvslog] configure: simplify bigendian check

2024-04-09 Thread J . Dekker
ffmpeg | branch: master | J. Dekker | Wed Mar 27 05:53:16 2024 +0100| [3090106635b32ee042fe3bb914b7c7863daa1d11] | committer: J. Dekker configure: simplify bigendian check The preferred way to use LTO is --enable-lto but often times packagers still end up with -flto in cflags for various

[FFmpeg-cvslog] avcodec/hevcdec: fix segfault on invalid film grain metadata

2024-04-09 Thread Niklas Haas
ffmpeg | branch: master | Niklas Haas | Sat Apr 6 13:11:09 2024 +0200| [459648761f5412acdc3317d5bac982ceaa257584] | committer: Niklas Haas avcodec/hevcdec: fix segfault on invalid film grain metadata Invalid input files may contain film grain metadata which survives

[FFmpeg-cvslog] fftools/ffmpeg_sched: allow filtergraphs to send to filtergraphs

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Fri Apr 5 11:42:10 2024 +0200| [255ae036012177e1c0419e28bc4b9ab10d848d0a] | committer: Anton Khirnov fftools/ffmpeg_sched: allow filtergraphs to send to filtergraphs Will be useful for filtergraph chaining that will be added in following commits. >

[FFmpeg-cvslog] fftools/ffmpeg_filter: change processing order in fg_finalise_bindings()

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Fri Apr 5 12:10:21 2024 +0200| [3d01996b242ee588bcb27d61d6351439b8849260] | committer: Anton Khirnov fftools/ffmpeg_filter: change processing order in fg_finalise_bindings() First bind all inputs in all filtergraphs, only then check that all outputs

[FFmpeg-cvslog] doc/ffmpeg: document that there can be multiple complex filtergraphs

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Fri Apr 5 15:06:54 2024 +0200| [baf17c15bec6eab97d9d67acd0a18cc0f4f45309] | committer: Anton Khirnov doc/ffmpeg: document that there can be multiple complex filtergraphs >

[FFmpeg-cvslog] fftools/ffmpeg_filter: only store complex filtergraphs in global array

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 12:49:55 2024 +0200| [243a51490a85923c29ea9c276786e7b7d29cff0d] | committer: Anton Khirnov fftools/ffmpeg_filter: only store complex filtergraphs in global array Store simple filtergraphs in the stream they feed. Keeping the two separate

[FFmpeg-cvslog] fftools/ffmpeg_filter: implement filtergraph chaining

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 11:46:52 2024 +0200| [3bd7c571257474b9b6f813a09a49b78056edd9bc] | committer: Anton Khirnov fftools/ffmpeg_filter: implement filtergraph chaining This allows one complex filtergraph's output to be sent as input to another one, which is

[FFmpeg-cvslog] fftools/ffmpeg_filter: drop OutputFilter.ost

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 11:35:26 2024 +0200| [d74cbcb9635f1c94f990dae4988a060ec6494f34] | committer: Anton Khirnov fftools/ffmpeg_filter: drop OutputFilter.ost All remaining code accessing it only needs to know whether this filtergraph output has been bound or

[FFmpeg-cvslog] fftools/ffmpeg_filter: accept encoder thread count through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 11:30:18 2024 +0200| [f2c919252da460f89f7281c769d3005e35d95b85] | committer: Anton Khirnov fftools/ffmpeg_filter: accept encoder thread count through OutputFilterOptions Stop digging through encoder options manually. Will allow decoupling

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass trim parameters through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 13:58:59 2024 +0200| [a2892dbe06161452ec6592bc0cbe8b0f6780] | committer: Anton Khirnov fftools/ffmpeg_filter: pass trim parameters through OutputFilterOptions Do not read them from OutputStream directly. Will allow decoupling filtering

[FFmpeg-cvslog] fftools/ffmpeg_mux: drop OutputFile.shortest

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 10:56:29 2024 +0200| [5b0589c8c37bc77df0e895d31135867e59b8cc90] | committer: Anton Khirnov fftools/ffmpeg_mux: drop OutputFile.shortest It is no longer needed outside of of_open() and its children. >

[FFmpeg-cvslog] fftools/ffmpeg_filter: move most of -apad logic to the muxer

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 10:51:53 2024 +0200| [a4c940c86a46e817eea16d8535db383f9e19c25c] | committer: Anton Khirnov fftools/ffmpeg_filter: move most of -apad logic to the muxer The decision whether -apad actually does anything is made based on muxer properties, and

[FFmpeg-cvslog] fftools/ffmpeg_mux: drop OutputFile.format

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 11:05:33 2024 +0200| [bfeb751171c87e81fa940f4152b1e72eb9b0a1c0] | committer: Anton Khirnov fftools/ffmpeg_mux: drop OutputFile.format It is no longer used outside of the muxing code (where we can access the muxer directly). >

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass sws/swr opts through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 13:58:59 2024 +0200| [b8e6802023a5e687c40b6565745a225f8e069657] | committer: Anton Khirnov fftools/ffmpeg_filter: pass sws/swr opts through OutputFilterOptions Do not read them from OutputStream directly. Will allow decoupling filtering

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass autoscale through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 13:58:59 2024 +0200| [83304f7c1f26ef12880115ad9b0c82b399759a46] | committer: Anton Khirnov fftools/ffmpeg_filter: pass autoscale through OutputFilterOptions Do not read it from OutputStream directly. Will allow decoupling filtering from

[FFmpeg-cvslog] fftools/ffmpeg_filter: drop an unnecessary use of OutputStream

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 13:44:22 2024 +0200| [23c23077fc79f27022f56855080debdba7a00274] | committer: Anton Khirnov fftools/ffmpeg_filter: drop an unnecessary use of OutputStream OutputFilter.type contains the same information. >

[FFmpeg-cvslog] fftools/ffmpeg_filter: simplify retrieving filter type

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 12:25:33 2024 +0200| [3c3e04c8a3fc93ab5b18277d59db8990ab6ec943] | committer: Anton Khirnov fftools/ffmpeg_filter: simplify retrieving filter type >

[FFmpeg-cvslog] fftools/ffmpeg_filter: add an AVClass to OutputFilter

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 13:40:42 2024 +0200| [fc6354c39cb06df6b5fcd83364e34b0ef27884f1] | committer: Anton Khirnov fftools/ffmpeg_filter: add an AVClass to OutputFilter Use it for logging where appropriate, avoid logging to OutputStream as we do not own it. This

[FFmpeg-cvslog] fftools/ffmpeg_filter: accept a caller-provided output name

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 11:40:41 2024 +0200| [da80e0b077552d1fbd591805705e47931427ea8f] | committer: Anton Khirnov fftools/ffmpeg_filter: accept a caller-provided output name Do not construct it from OutputStream manually. Will allow decoupling filtering from

[FFmpeg-cvslog] fftools/ffmpeg_filter: drop a redundant check

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Tue Apr 2 12:23:05 2024 +0200| [114cbaa316d7d71d942229cd665e76a0a5e3c24b] | committer: Anton Khirnov fftools/ffmpeg_filter: drop a redundant check fg_finalise_bindings() already checks that all filtergraph outputs are connected. >

[FFmpeg-cvslog] fftools/ffmpeg: drop OutputStream.is_cfr

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:29:16 2024 +0200| [82c7c21b1812928f8507a8c91a2070d41cac49ea] | committer: Anton Khirnov fftools/ffmpeg: drop OutputStream.is_cfr It is used in a single place in the filtering code, so it is better to inline it there. >

[FFmpeg-cvslog] fftools/ffmpeg_filter: stop accessing encoder AVCodecContext

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:29:16 2024 +0200| [bc206ed1b3631801869b1bd4ddb3d3e4dd5f7aef] | committer: Anton Khirnov fftools/ffmpeg_filter: stop accessing encoder AVCodecContext Pass all the necessary value through OutputFilterOptions. Will allow decoupling

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass enc_timebase through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:29:16 2024 +0200| [9d5bf2d69e6ad85adbf8a673929192e0b07bc080] | committer: Anton Khirnov fftools/ffmpeg_filter: pass enc_timebase through OutputFilterOptions Reduces the need to access OutputStream, which will allow decoupling filtering

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass keep_pix_fmt through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:29:16 2024 +0200| [e903c31fd159a48bd6bbc8cb9cdd45fd67727650] | committer: Anton Khirnov fftools/ffmpeg_filter: pass keep_pix_fmt through OutputFilterOptions Reduces the need to access OutputStream, which will allow decoupling filtering

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass vsync method through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:29:16 2024 +0200| [509afedaafa1c6796dac6c5654a1229d6af945bb] | committer: Anton Khirnov fftools/ffmpeg_filter: pass vsync method through OutputFilterOptions Do not read it from OutputStream directly. Will allow decoupling filtering from

[FFmpeg-cvslog] fftools/ffmpeg_filter: move the MJPEG format selection hack to muxer setup

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 07:50:31 2024 +0200| [17702c5f7bfdd02bda3a29971d6d564c01971988] | committer: Anton Khirnov fftools/ffmpeg_filter: move the MJPEG format selection hack to muxer setup That, if anywhere, is a more appropriate place for it. >

[FFmpeg-cvslog] fftools/ffmpeg: warn about ignored -enc_time_base for subtitles earlier

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 07:36:01 2024 +0200| [606c71bb117ab32eb91cfa5b8e14594023fb1175] | committer: Anton Khirnov fftools/ffmpeg: warn about ignored -enc_time_base for subtitles earlier Can do it as soon as that option is parsed, no need to postpone it until

[FFmpeg-cvslog] fftools/ffmpeg_filter: pass ts offset through OutputFilterOptions

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:29:16 2024 +0200| [b3864e7a080d5716d6a6d8dd8e327ed6c6dd2d2f] | committer: Anton Khirnov fftools/ffmpeg_filter: pass ts offset through OutputFilterOptions Reduces the need to access OutputFile, which will allow decoupling filtering from

[FFmpeg-cvslog] fftools/ffmpeg_filter: do not pass OutputStream to set_channel_layout()

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Fri Mar 29 10:15:49 2024 +0100| [8c330853131e1d1f75c6238784596235af2e9603] | committer: Anton Khirnov fftools/ffmpeg_filter: do not pass OutputStream to set_channel_layout() It only needs a list of allowed layouts and the requested layout. >

[FFmpeg-cvslog] fftools/ffmpeg_filter: check that filter type matches output stream type

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:23:58 2024 +0200| [651c79da362b4a9f618458ddd08b92504ffb3b6d] | committer: Anton Khirnov fftools/ffmpeg_filter: check that filter type matches output stream type For simple filtergraphs. For complex filtergraphs they always match. >

[FFmpeg-cvslog] fftools/ffmpeg_filter: stop accessing AVCodecContext.codec

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Mon Apr 1 06:07:45 2024 +0200| [8e35e33d42efb89ff7e3da92b841a3b43a5a95bc] | committer: Anton Khirnov fftools/ffmpeg_filter: stop accessing AVCodecContext.codec Instead pass the encoder through a newly-added output options struct, analogous to

[FFmpeg-cvslog] lavfi/vf_scale: fix AVOption flags for "size"/"s"

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Fri Apr 5 13:38:45 2024 +0200| [b0e1bc6298ceda81b8f88acdb96d023f1bf00d80] | committer: Anton Khirnov lavfi/vf_scale: fix AVOption flags for "size"/"s" >

[FFmpeg-cvslog] lavfi/avfilter: add an "auto" constant to the threads option

2024-04-09 Thread Anton Khirnov
ffmpeg | branch: master | Anton Khirnov | Thu Apr 4 11:19:12 2024 +0200| [d7cde009ce7884995bb38505a26e819b9f57a3d2] | committer: Anton Khirnov lavfi/avfilter: add an "auto" constant to the threads option Analogous to the same constant in avfiltergraph and avcodec. Cf. f599ae88c25. >