I've noticed that OpenAPV uses bitstream buffers with a size of 128 mebibytes, which is not a quantity to ignore, while encoding to avoid potential issues of overflows. Ideally this number should be calculated according to average bitrate or a quantization parameter per what I understand instead of an arbitrary number. Meanwhile, decoding is a bit more flexible if packet sizes are known. An estimate can help when using a low or a high bitrate regardless.