On 25/10/2011 12:37, Isaac Wang wrote:
> Hello,
> I am experiencing a heap corruption bug whenever I make multiple calls
> to avformat_open_input.  I have a video player that reads frames from a
> UDP stream and I have the feature where the user can specify a new IP
> address + port to read from.  Whenever the user chooses a new stream, I
> free all the the data structures (including calling av_close_input_file)
> and reopen all of my structures again (including calling
> avformat_open_input).  Although I can for the most part close and open a
> new address, if I try to open/close streams multiple times, eventually
> my program will crash while trying to call avformat_open_input due to a
> heap corruption bug.  Has anyone experienced this or have any insight on
> how to properly close and open a new stream?


Could you please try a reduced testcase and attach it here?

I'd run it on valgrind to get some more insights.

I have a number of projects opening and closing input and they do not
show this issue.

lu

-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

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

Reply via email to