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

Reynaldo H. Verdejo Pinochet reynaldo at osg.samsung.com
Mon Nov 30 21:46:25 CET 2015



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(&c->pb_buffer);
>                      len = avio_close_dyn_buf(ctx->pb, &c->pb_buffer);
> +                    ctx->pb = NULL;

Looks good. I think there's a similar issue at the end
of rtp_new_av_stream() you might want to handle too but
please feel free to push as-is.

Bests,

-- 
Reynaldo


More information about the ffmpeg-devel mailing list