Re: [FFmpeg-devel] [PATCH 2/2] ffserver: Clear avio context after closing it

2015-11-30 Thread Michael Niedermayer
On Mon, Nov 30, 2015 at 12:46:25PM -0800, Reynaldo H. Verdejo Pinochet wrote: > > > On 11/01/2015 09:34 AM, Michael Niedermayer wrote: > > [...] > > --- a/ffserver.c > > +++ b/ffserver.c > > @@ -2366,6 +2366,7 @@ static int http_prepare_data(HTTPContext *c) > > > >

Re: [FFmpeg-devel] [PATCH 2/2] ffserver: Clear avio context after closing it

2015-11-30 Thread Reynaldo H. Verdejo Pinochet
On 11/01/2015 09:34 AM, Michael Niedermayer wrote: > [...] > --- a/ffserver.c > +++ b/ffserver.c > @@ -2366,6 +2366,7 @@ static int http_prepare_data(HTTPContext *c) > > av_freep(>pb_buffer); > len = avio_close_dyn_buf(ctx->pb, >pb_buffer); > +

[FFmpeg-devel] [PATCH 2/2] ffserver: Clear avio context after closing it

2015-11-01 Thread Michael Niedermayer
From: Michael Niedermayer Fixes: ==13287== Invalid read of size 4 ==13287==at 0x45161A: flush_buffer (aviobuf.c:143) ==13287==by 0x451971: avio_flush (aviobuf.c:200) ==13287==by 0x512CCF: av_write_trailer (mux.c:1016) ==13287==by 0x41A5E0: close_connection