[FFmpeg-devel] [PATCH] Allow enabling SVC in libaomenc

Michael Niedermayer michael at niedermayer.cc
Thu Jun 6 01:43:57 EEST 2024


On Wed, Jun 05, 2024 at 02:34:07PM -0700, Chun-Min Chang wrote:
> This patch updates libaomenc.c to accept parameters for SVC (Scalable
> Video Coding) settings via the FFmpeg API `av_opt_set`. The SVC
> configuration is applied based on the provided parameters. As libaom's
> SVC functionality only operates with constant bitrate encoding [1],
> these parameters will only take effect when the bitrate is set to
> constant.
> 
> [1] https://aomedia.googlesource.com/aom/+/a7ef80c44bfb34b08254194b1ab72d4e93ff4b07/av1/encoder/svc_layercontext.h#115
> 
> Signed-off-by: Chun-Min Chang <chun.m.chang at gmail.com>
> ---
>  libavcodec/libaomenc.c | 75 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)

Applying: Allow enabling SVC in libaomenc
error: corrupt patch at line 16
error: could not build fake ancestor
Patch failed at 0001 Allow enabling SVC in libaomenc

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240606/a3e34e9a/attachment.sig>


More information about the ffmpeg-devel mailing list