On Thu, 22 Jan 2015, Luca Barbato wrote:

On 08/01/15 23:03, Martin Storsjö wrote:

Does the issue go away if you change this part of avio_seek

    if (!s->must_flush &&
        offset1 >= 0 && offset1 <= (s->buf_end - s->buffer)) {

like this?

    if (!s->must_flush &&
        offset1 >= 0 && offset1 < (s->buf_end - s->buffer)) {



I hope so, I guess we can use your fix.

FWIW, I haven't though that fix through completely - I'm not sure if it breaks some other cornercase though; it was mostly a first guess to try to understand the root of the issue.

For this fix to actually help, iirc it sounded to me that the calling muxer would need to seek "too far" ahead (seeking past bytes that haven't yet been written).

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to