We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95bb47d commit f46415fCopy full SHA for f46415f
libavformat/hlsenc.c
@@ -888,7 +888,9 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
888
889
if (!(st = avformat_new_stream(loc, NULL)))
890
return AVERROR(ENOMEM);
891
- avcodec_parameters_copy(st->codecpar, vs->streams[i]->codecpar);
+ ret = avcodec_parameters_copy(st->codecpar, vs->streams[i]->codecpar);
892
+ if (ret < 0)
893
+ return ret;
894
if (!oc->oformat->codec_tag ||
895
av_codec_get_id (oc->oformat->codec_tag, vs->streams[i]->codecpar->codec_tag) == st->codecpar->codec_id ||
896
av_codec_get_tag(oc->oformat->codec_tag, vs->streams[i]->codecpar->codec_id) <= 0) {
0 commit comments