Re: [FFmpeg-devel] bad arguments to init_put_bits

2015-02-26 Thread Dyami Caliri
its(), if buffer_size < 0, the buffer_size is set to zero and the buffer is set to 0/NULL. Thereafter, any calls to put_bits will crash, because it accesses 'buf_ptr', which is NULL. On Thu, Feb 26, 2015 at 11:45 AM, Michael Niedermayer wrote: > Hi > > > On Thu, Feb 26, 2

[FFmpeg-devel] bad arguments to init_put_bits

2015-02-26 Thread Dyami Caliri
The init_put_bits() function (in libavcodec/put_bits.h) takes a buffer and a buffer size (in bytes). Several of the encoders are passing the buffer size in bits, by multiplying the buffer size by 8. This is incorrect. We saw this problem when encoding a ProRes (Anatoliy) file at size 4096x4096. De