How to Set the Maximum Value
Obviously, if at some point a "crowd" of packets arrives at once, the amount of data in the buffer will increase dramatically. In addition, the more often such "bursts" occur, the bigger the buffer will grow. This means increased memory consumption.
In addition, a large buffer means that a newly arrived frame will only be displayed when its turn comes. Let's assume that at some point we have 3000 ms of data in the buffer. This means that a new frame which arrives in the buffer will take 3 seconds to reach the "viewer". Therefore, if you want to have "glass-to-glass" delay and you need RealTime - set maximum value of buffer, for example, 300 ms. Of course, in this case it is supposed that some frames will be dropped. If you do not need RealTime, you may set it to 3000 ms, for example.
By setting the maximum buffer value, you can automatically control the buffer size. For example, if the maximum value is 3000 ms, when this value is reached, all frames in the buffer will be destroyed.
You can use "zero" as the maximum buffer value to disable this behaviour. In this case, the buffer may grow uncontrollably, but you can always press the "Reset buffer" button to clear it.