diff options
author | Pierre-Anthony Lemieux <pal@palemieux.com> | 2022-08-07 02:35:19 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-12 19:54:19 +0300 |
commit | f2403d1530aaf0b1a2f3833aaa6917e02ce147ac (patch) | |
tree | db4135866f68ef61f194ef2d2b01fb188e185fb9 /libavformat/fifo.c | |
parent | 7158f1e64d9b76afea78537a35c465447df0cff8 (diff) |
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/fifo.c')
-rw-r--r-- | libavformat/fifo.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/fifo.c b/libavformat/fifo.c index ead2bdc5cf..692c854be2 100644 --- a/libavformat/fifo.c +++ b/libavformat/fifo.c @@ -505,13 +505,9 @@ static int fifo_mux_init(AVFormatContext *avf, const AVOutputFormat *oformat, avf2->flags = avf->flags; for (i = 0; i < avf->nb_streams; ++i) { - AVStream *st = avformat_new_stream(avf2, NULL); + AVStream *st = ff_stream_clone(avf2, avf->streams[i]); if (!st) return AVERROR(ENOMEM); - - ret = ff_stream_encode_params_copy(st, avf->streams[i]); - if (ret < 0) - return ret; } return 0; |