[FFmpeg-devel] [PATCH] avformat/avio: check input URLContext value NULL

Jeyapal, Karthick kjeyapal at akamai.com
Wed Dec 27 08:40:58 EET 2017



On 12/27/17, 11:55 AM, "Steven Liu" <lingjiujianke at gmail.com> wrote:

>2017-11-20 15:58 GMT+08:00 Steven Liu <lq at chinaffmpeg.org>:
>> fix ticket id: #6846
>>
>> Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
>> ---
>>  libavformat/avio.c | 10 ++++++----
>>  1 file changed, 6 insertions(+), 4 deletions(-)
>>
>>[…]
>>  int ffurl_shutdown(URLContext *h, int flags)
>>  {
>> -    if (!h->prot->url_shutdown)
>> -        return AVERROR(EINVAL);
>> +    if (!h || !h->prot || !h->prot->url_shutdown)
>> +        return AVERROR(ENOSYS);
>>      return h->prot->url_shutdown(h, flags);
>>  }
>>
>> --
>> 2.13.6 (Apple Git-96)
>>
>>
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>ping

LGTM. 
In fact, I would like this change to be merged to handle some error cases in hlsenc as well.

Thanks,
Karthick



More information about the ffmpeg-devel mailing list