Re: [FFmpeg-devel] Fix for aviobuf.c::fill_buffer

2016-07-21 Thread code bythepound
Here is what seems to trigger this bug: 1) You have to be using an AVIOContext buffer size larger than aviobuf.c::IO_BUFFER_SIZE (32768) or otherwise larger than AVIOContext::max_packet_size. 2) Your AVIOContext can not provide a seek method (ie: not seekable) 3) You have to be using a file format

Re: [FFmpeg-devel] Fix for aviobuf.c::fill_buffer

2016-07-21 Thread code bythepound
I will see if I can put together a test case that exposes the problem. The comment for this block says "make buffer smaller in case it ended up large after probing" - I'm not 100% certain what that means. I put prints inside this block and after the ffio_set_buf_size() call, this block is never e

Re: [FFmpeg-devel] Fix for aviobuf.c::fill_buffer

2016-07-20 Thread Michael Niedermayer
On Wed, Jul 20, 2016 at 03:59:39PM +, code bythepound wrote: > My app seems to hit the av_assert0(len >= s->orig_buffer_size) (line 535 in > my sources) in aviobuf.c::fill_buffer. FWIW I have registered a custom > AVIOContext that will consistently not fill the entire buffer when the read > ca

[FFmpeg-devel] Fix for aviobuf.c::fill_buffer

2016-07-20 Thread code bythepound
My app seems to hit the av_assert0(len >= s->orig_buffer_size) (line 535 in my sources) in aviobuf.c::fill_buffer. FWIW I have registered a custom AVIOContext that will consistently not fill the entire buffer when the read callback is called. The outcome is that 'len' in fill_buffer is decremente