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/tee.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/tee.c')
-rw-r--r-- | libavformat/tee.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c index f1f2a9d2a5..dd408dd096 100644 --- a/libavformat/tee.c +++ b/libavformat/tee.c @@ -284,14 +284,11 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave) } tee_slave->stream_map[i] = stream_count++; - if (!(st2 = avformat_new_stream(avf2, NULL))) { + st2 = ff_stream_clone(avf2, st); + if (!st2) { ret = AVERROR(ENOMEM); goto end; } - - ret = ff_stream_encode_params_copy(st2, st); - if (ret < 0) - goto end; } ret = ff_format_output_open(avf2, filename, &options); |