[FFmpeg-devel] [PATCH 2/2] lavf/tcp.c: Free allocated client URLContext in case of error.

Nicolas George george at nsup.org
Tue Apr 11 20:24:40 EEST 2017


Le duodi 22 germinal, an CCXXV, Stephan Holljes a écrit :
> In fact the http patch introduces a bug where it closes the URLContext
> regardless of ret. New patches shortly. (Also rebased on Simon's
> patches fixing tcp return codes.)

You are right, I missed that too.

I suggest to add "return 0;" before "fail:", so that it is really only
for failure.

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list