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 > --- > 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