[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.

Re: [FFmpeg-devel] bad arguments to init_put_bits

2015-02-26 Thread Dyami Caliri
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 michae...@gmx.at wrote: Hi On Thu, Feb 26, 2015 at 10:42:06AM -0800, Dyami Caliri wrote: The init_put_bits