]> git.sesse.net Git - ffmpeg/commit
lavc/snowenc: Expose an option to set the rc_eq expression
authorAlexander Strasser <eclipse7@gmx.net>
Fri, 7 Aug 2020 19:40:40 +0000 (21:40 +0200)
committerAlexander Strasser <eclipse7@gmx.net>
Wed, 12 Aug 2020 15:35:38 +0000 (17:35 +0200)
commitb40dd2fdabaa1ffb24ccf6486dc8a96e84b72c40
tree1429cd3d1db54cef0acb8d15ece7ebdbd10ab72b
parentecd71916d1e573a4b91b1fd182f3d232a1693dff
lavc/snowenc: Expose an option to set the rc_eq expression

Snow uses the ratecontrol module, but does not expose a way to set
the rc_eq expression. The default expression, set in the ratecontrol
module, will always be used.

Make it possible to set rc_eq by adding an AVOption to snowenc.

The option definition is mostly a copy from the mpegvideo common
options definition of rc_eq (libavcodec/mpegvideo.h), with some
minor style adjustments to be closer to the other snowenc option
initializer expressions.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
libavcodec/snowenc.c