[FFmpeg-cvslog] avformat: Make init function out of write_header functions if possible

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Wed Mar 20 00:51:30 2024 +0100| [073251316e1b0e4174a5aea41e8a3ce25590b165] | committer: Andreas Rheinhardt avformat: Make init function out of write_header functions if possible Also mark them as av_cold while just at it. Signed-off-by: Andreas R

[FFmpeg-cvslog] avformat: Enforce codec_id where appropriate

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 23:44:16 2024 +0100| [37f0dbbc3911d315e12478535dcc7ea138d000ad] | committer: Andreas Rheinhardt avformat: Enforce codec_id where appropriate E.g. chromaprint expects to be fed 16bit signed PCM in native endianness, yet there was no chec

[FFmpeg-cvslog] avformat/ttmlenc: Avoid unnecessary block

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 23:37:11 2024 +0100| [2ccb45511fa9f1c7f57d171d3e7f41a604e07a71] | committer: Andreas Rheinhardt avformat/ttmlenc: Avoid unnecessary block Signed-off-by: Andreas Rheinhardt > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c

[FFmpeg-cvslog] avformat/mux: Add flag for "only default codecs allowed"

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 23:28:36 2024 +0100| [a24bccc23859b37e03cbf395b3349cb4f707b3e0] | committer: Andreas Rheinhardt avformat/mux: Add flag for "only default codecs allowed" AVOutputFormat has default codecs for audio, video and subtitle and often these are

[FFmpeg-cvslog] avformat: Enforce one-stream limit where appropriate

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 22:07:12 2024 +0100| [03b04eef72a5f23e30c2d7700b290d915c31d3a1] | committer: Andreas Rheinhardt avformat: Enforce one-stream limit where appropriate Several muxers (e.g. pcm muxers) did not check the number of streams even though the in

[FFmpeg-cvslog] fate/filter-audio: Don't use pcm output for channelsplit test

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 21:08:28 2024 +0100| [c6bc2d4fea99bfc0ad125897f61d205d78d0a8c1] | committer: Andreas Rheinhardt fate/filter-audio: Don't use pcm output for channelsplit test This test muxes two streams into a single pcm file, although the two streams a

[FFmpeg-cvslog] avformat/mux: Rename FF_FMT_ALLOW_FLUSH->FF_OFMT_FLAG_ALLOW_FLUSH

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 15 18:18:23 2024 +0100| [233e13f285c9f0169b62fea38d6c09f15186fa5f] | committer: Andreas Rheinhardt avformat/mux: Rename FF_FMT_ALLOW_FLUSH->FF_OFMT_FLAG_ALLOW_FLUSH It better reflects that this is a muxer-only flag. Also document the flag.

[FFmpeg-cvslog] avformat/mux: Add flag for "not more than one stream of each type"

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 21:40:54 2024 +0100| [f4167842c12ad0e406a2bed4c2bb17084b184710] | committer: Andreas Rheinhardt avformat/mux: Add flag for "not more than one stream of each type" More exactly: Not more than one stream of each type for which a default c

[FFmpeg-cvslog] avformat/mux_utils: Don't report that AV_CODEC_ID_NONE can be muxed

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 19:42:55 2024 +0100| [a48e839a221d8470071a367b6a7be1bc022ba6e7] | committer: Andreas Rheinhardt avformat/mux_utils: Don't report that AV_CODEC_ID_NONE can be muxed If AVOutputFormat.video_codec, audio_codec or subtitle_codec is AV_CODEC

[FFmpeg-cvslog] avformat/amr: Move write_header closer to muxer definition

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 19:04:09 2024 +0100| [789c5b03db3b5e11387e40e774030ac316783ffb] | committer: Andreas Rheinhardt avformat/amr: Move write_header closer to muxer definition Avoids one #if. Signed-off-by: Andreas Rheinhardt > http://git.videolan.org/gi

[FFmpeg-cvslog] libavformat/westwood_audenc: Use proper logcontext

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 23:03:45 2024 +0100| [b8124fe35ef92512d9d4522c4ccc27fdc6436e39] | committer: Andreas Rheinhardt libavformat/westwood_audenc: Use proper logcontext (AVStream did not have an AVClass when this muxer was added.) Signed-off-by: Andreas Rhe

[FFmpeg-cvslog] avformat/mp3enc: Improve query_codec

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 05:00:26 2024 +0100| [eb3ee7f141d33e2133697919ee91352cfad388b0] | committer: Andreas Rheinhardt avformat/mp3enc: Improve query_codec Signal that anything except MP3 and the ID3V2 attached pic types are forbidden. Signed-off-by: Andreas

[FFmpeg-cvslog] avutil/frame: Use av_realloc_array(), improve overflow check

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 15:24:47 2024 +0100| [d11b5e6096b888caa7e6c4d159f6c0c44d0ca83d] | committer: Andreas Rheinhardt avutil/frame: Use av_realloc_array(), improve overflow check Also use sizeof of the proper type, namely sizeof(**sd) and not sizeof(*sd). R

[FFmpeg-cvslog] avutil/frame: Rename av_frame_side_data_get and add wrapper for it

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 14:44:21 2024 +0100| [b7bec5d3c9ec0d38175d3385b37d85de26c96470] | committer: Andreas Rheinhardt avutil/frame: Rename av_frame_side_data_get and add wrapper for it av_frame_side_data_get() has a const AVFrameSideData * const *sd paramete

[FFmpeg-cvslog] avutil/frame: Constify av_frame_side_data_get()

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 14:37:15 2024 +0100| [26398da8f3001518e6d229e69f8dedd50ef7d5f9] | committer: Andreas Rheinhardt avutil/frame: Constify av_frame_side_data_get() Reviewed-by: Jan Ekström Signed-off-by: Andreas Rheinhardt > http://git.videolan.org/gitw

[FFmpeg-cvslog] avcodec/libx265: Don't use AVBPrint unnecessarily

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 14:15:44 2024 +0100| [244db7103797df3f3f87e4c1bd8cf5224e6ebff9] | committer: Andreas Rheinhardt avcodec/libx265: Don't use AVBPrint unnecessarily This code uses the AVBPrint API for exactly one av_bprintf() in a scenario in which a good

[FFmpeg-cvslog] avcodec/libx265: Pass logctx as void*, not AVClass**

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 14:25:44 2024 +0100| [b9fcc135c570e254b8cb8d63c50877646bf97e40] | committer: Andreas Rheinhardt avcodec/libx265: Pass logctx as void*, not AVClass** The latter need not be save, because av_log() expects to get a pointer to an AVClass-en

[FFmpeg-cvslog] avcodec/libx264: Remove unused variable

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 14:02:21 2024 +0100| [6ecc2f0f6f5011946b5dd9724eaeaf56b224b478] | committer: Andreas Rheinhardt avcodec/libx264: Remove unused variable Reviewed-by: Zhao Zhili Signed-off-by: Andreas Rheinhardt > http://git.videolan.org/gitweb.cgi/ff

[FFmpeg-cvslog] fftools/ffmpeg_enc: Don't call frame_data twice

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Fri Mar 22 17:07:00 2024 +0100| [c77164390b6432626d970d197c2da44f408071bc] | committer: Andreas Rheinhardt fftools/ffmpeg_enc: Don't call frame_data twice Reviewed-by: Jan Ekström Signed-off-by: Andreas Rheinhardt > http://git.videolan.org/gitw

[FFmpeg-cvslog] avcodec/librav1e: Don't unnecessarily create new references

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Thu Mar 7 17:25:37 2024 +0100| [3fd047ee30574fd2dfd739cbb150f87c7225b81f] | committer: Andreas Rheinhardt avcodec/librav1e: Don't unnecessarily create new references Signed-off-by: Andreas Rheinhardt > http://git.videolan.org/gitweb.cgi/ffmpeg.

[FFmpeg-cvslog] avcodec/libdav1d: Stop mangling AVPacket.opaque

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Thu Mar 7 16:11:32 2024 +0100| [c89f6ae6899e0f3ffb4f51da1f1776ab16f5b3a0] | committer: Andreas Rheinhardt avcodec/libdav1d: Stop mangling AVPacket.opaque Unnecessary since 67e7f0b0537eee1357769038270fda08fe32 as there are no longer two opaque

[FFmpeg-cvslog] avcodec/dovi_rpu: fix off-by-one in loop

2024-03-22 Thread Niklas Haas
ffmpeg | branch: master | Niklas Haas | Thu Mar 21 13:32:21 2024 +0100| [f04a2ba30230d80201d7021780593625c5ba709e] | committer: Niklas Haas avcodec/dovi_rpu: fix off-by-one in loop Otherwise the last VDR would never get copied. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f04a2b

[FFmpeg-cvslog] avcodec/dovi_rpu: use OR instead of addition

2024-03-22 Thread Niklas Haas
ffmpeg | branch: master | Niklas Haas | Thu Mar 21 13:50:45 2024 +0100| [d5648a806fda04eeb76e4c8ec9685e8ce19ecc44] | committer: Niklas Haas avcodec/dovi_rpu: use OR instead of addition > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5648a806fda04eeb76e4c8ec9685e8ce19ecc44 --- lib

[FFmpeg-cvslog] avcodec/libx264: fix extradata when config annexb=0

2024-03-22 Thread Zhao Zhili
ffmpeg | branch: master | Zhao Zhili | Sun Mar 17 11:34:57 2024 +0800| [5229778440bf81e8a929af2cde04dc1e2d2c65f5] | committer: Zhao Zhili avcodec/libx264: fix extradata when config annexb=0 AVCodecContext extradata should be an AVCDecoderConfigurationRecord when bitstream format is avcc. Simpl

[FFmpeg-cvslog] Changelog: mention ffplay with hwaccel decoding support

2024-03-22 Thread Zhao Zhili
ffmpeg | branch: master | Zhao Zhili | Mon Mar 18 23:26:14 2024 +0800| [4869171aa911fdfce67549bd56fdd0ff914d9380] | committer: Zhao Zhili Changelog: mention ffplay with hwaccel decoding support Signed-off-by: Zhao Zhili > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4869171aa911

[FFmpeg-cvslog] avcodec/decode: log hwaccel name

2024-03-22 Thread Zhao Zhili
ffmpeg | branch: master | Zhao Zhili | Thu Mar 14 11:40:03 2024 +0800| [c775163a8c032e20f25b79e63920f67e1b5b540d] | committer: Zhao Zhili avcodec/decode: log hwaccel name Many users mistakenly think that hwaccel is an instance of a decoder, and cannot find the corresponding decoder name in the

[FFmpeg-cvslog] avformat/flvenc: Avoid avio_write(pb, "", 0)

2024-03-22 Thread Andreas Rheinhardt
ffmpeg | branch: master | Andreas Rheinhardt | Tue Mar 19 04:17:18 2024 +0100| [ee736ff80ed967999645147c974cd1941d5e6a21] | committer: Andreas Rheinhardt avformat/flvenc: Avoid avio_write(pb, "", 0) When the compiler chooses to inline put_amf_string(pb, ""), the avio_write(pb, "", 0) can be av