diff options
author | Jan Ekström <jeebjp@gmail.com> | 2023-03-09 20:27:06 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2023-03-14 00:14:52 +0200 |
commit | fba9d9609fe00c8c4d04b76f9ecdd274aad318dd (patch) | |
tree | f2967bc22be86aadd11f4c96f23a34728971baf2 /libavutil/eval.c | |
parent | 1231003c3c6d4839a9e838d06f8e16ee7690958f (diff) | |
download | ffmpeg-fba9d9609fe00c8c4d04b76f9ecdd274aad318dd.tar.gz |
avcodec/libsvtav1: use larger of bit rate and max rate for buffer size
Generally if maxrate is set, the calculation should be maxrate over
bufsize. This additionally enables CRF + maxrate & bufsize usage.
In order to keep negative values from enabling zero to be treated
as larger and causing a division by zero, check that one of the
variables is larger than zero.
Diffstat (limited to 'libavutil/eval.c')
0 files changed, 0 insertions, 0 deletions