You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge remote-tracking branch 'cehoyos/master'
* cehoyos/master: Suggest recompilation with openssl or gnutls if the https protocol is not found. lavf/utils.c: Avoid a null pointer dereference on oom after duration_error allocation. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -241,6 +241,8 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
|
|||||||
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
|
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
|
||||||
}
|
}
|
||||||
*puc = NULL;
|
*puc = NULL;
|
||||||
|
if (!strcmp("https", proto_str))
|
||||||
|
av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile with openssl or gnutls enabled.\n");
|
||||||
return AVERROR_PROTOCOL_NOT_FOUND;
|
return AVERROR_PROTOCOL_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2859,6 +2859,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
|
|
||||||
if (!st->info->duration_error)
|
if (!st->info->duration_error)
|
||||||
st->info->duration_error = av_mallocz(sizeof(st->info->duration_error[0])*2);
|
st->info->duration_error = av_mallocz(sizeof(st->info->duration_error[0])*2);
|
||||||
|
if (!st->info->duration_error)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
// if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
|
// if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
|
||||||
// av_log(NULL, AV_LOG_ERROR, "%f\n", dts);
|
// av_log(NULL, AV_LOG_ERROR, "%f\n", dts);
|
||||||
|
Reference in New Issue
Block a user