[FFmpeg-devel] [PATCH] avformat/rtpdec_asf: free the buffer pointed by the AVIOContext

James Almer jamrial at gmail.com
Mon Nov 6 21:26:34 EET 2017


On 11/6/2017 3:54 PM, Carl Eugen Hoyos wrote:
> 2017-11-06 17:29 GMT+01:00 James Almer <jamrial at gmail.com>:
>> Don't free the buffer allocated in ff_wms_parse_sdp_a_line() after
>> calling avformat_open_input(), as it may free it and replace it with
>> another one.
>>
>> Should fix ticket #6808
> 
> I can confirm that the patch fixes the issue, consider using av_freep.

No point, the AVIOContext is local and the av_free() call happens right
before returning from the function.

Pushed, thanks.


More information about the ffmpeg-devel mailing list