mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-09 14:07:31 +02:00
avformat/hlsenc: Remove redundant setting of output format
avformat_alloc_output_context2() already sets the oformat member, so that there is no reason to overwrite it again with the value it already has. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
a8d7393804
commit
1ec0fb56a7
@ -793,7 +793,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
|
|||||||
if (!oc->url)
|
if (!oc->url)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
oc->oformat = vs->oformat;
|
|
||||||
oc->interrupt_callback = s->interrupt_callback;
|
oc->interrupt_callback = s->interrupt_callback;
|
||||||
oc->max_delay = s->max_delay;
|
oc->max_delay = s->max_delay;
|
||||||
oc->opaque = s->opaque;
|
oc->opaque = s->opaque;
|
||||||
@ -807,7 +806,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
vtt_oc = vs->vtt_avf;
|
vtt_oc = vs->vtt_avf;
|
||||||
vtt_oc->oformat = vs->vtt_oformat;
|
|
||||||
av_dict_copy(&vtt_oc->metadata, s->metadata, 0);
|
av_dict_copy(&vtt_oc->metadata, s->metadata, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user