On 28/02/2017 17:52, Vittorio Giovara wrote:
> I think so, and thanks for the explanation. I just hope that this
> doesn't end up being more complicated than it should.
I think it should be one more variable to account for the overflow.
So you can do something like this to get the expected size:
if (overflow)
return size_in_bits + overflow;
And when you write do something along the lines of:
if (at the end of the buffer) {
overflow += size;
return early;
}
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel