diff options
author | Pierre-Anthony Lemieux <pal@palemieux.com> | 2022-08-06 16:35:19 -0700 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-12 18:54:19 +0200 |
commit | f2403d1530aaf0b1a2f3833aaa6917e02ce147ac (patch) | |
tree | db4135866f68ef61f194ef2d2b01fb188e185fb9 /libavformat/webm_chunk.c | |
parent | 7158f1e64d9b76afea78537a35c465447df0cff8 (diff) | |
download | ffmpeg-f2403d1530aaf0b1a2f3833aaa6917e02ce147ac.tar.gz |
avformat: refactor ff_stream_encode_params_copy() to stream_params_copy()
Addresses http://ffmpeg.org/pipermail/ffmpeg-devel/2022-August/299726.html
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/webm_chunk.c')
-rw-r--r-- | libavformat/webm_chunk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c index d69db3a004..9e71a1209d 100644 --- a/libavformat/webm_chunk.c +++ b/libavformat/webm_chunk.c @@ -91,12 +91,10 @@ static int webm_chunk_init(AVFormatContext *s) if ((ret = av_dict_copy(&oc->metadata, s->metadata, 0)) < 0) return ret; - if (!(st = avformat_new_stream(oc, NULL))) + st = ff_stream_clone(oc, ost); + if (!st) return AVERROR(ENOMEM); - if ((ret = ff_stream_encode_params_copy(st, ost)) < 0) - return ret; - if (wc->http_method) if ((ret = av_dict_set(&dict, "method", wc->http_method, 0)) < 0) return ret; |