]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hlsenc: Remove redundant setting of output format
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 29 Feb 2020 01:21:34 +0000 (02:21 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 7 May 2020 14:06:51 +0000 (16:06 +0200)
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>
libavformat/hlsenc.c

index 5695c6cc950ceded1421cc2771ac46ae9c8103c0..11b5c481b04c5545aab90f0064c3f6b928117a31 100644 (file)
@@ -793,7 +793,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
     if (!oc->url)
         return AVERROR(ENOMEM);
 
-    oc->oformat                  = vs->oformat;
     oc->interrupt_callback       = s->interrupt_callback;
     oc->max_delay                = s->max_delay;
     oc->opaque                   = s->opaque;
@@ -807,7 +806,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
         if (ret < 0)
             return ret;
         vtt_oc          = vs->vtt_avf;
-        vtt_oc->oformat = vs->vtt_oformat;
         av_dict_copy(&vtt_oc->metadata, s->metadata, 0);
     }