[FFmpeg-cvslog] avformat/hlsenc: Remove redundant setting of output format
Andreas Rheinhardt
git at videolan.org
Thu May 7 17:16:36 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sat Feb 29 02:21:34 2020 +0100| [1ec0fb56a7640f740409110536aee97c0679c35c] | committer: Andreas Rheinhardt
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ec0fb56a7640f740409110536aee97c0679c35c
---
libavformat/hlsenc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 5695c6cc95..11b5c481b0 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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);
}
More information about the ffmpeg-cvslog
mailing list