Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Anthony Lemieux <pal@palemieux.com>2022-08-07 02:35:19 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-12 19:54:19 +0300
commitf2403d1530aaf0b1a2f3833aaa6917e02ce147ac (patch)
treedb4135866f68ef61f194ef2d2b01fb188e185fb9 /libavformat/tee.c
parent7158f1e64d9b76afea78537a35c465447df0cff8 (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.c7
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);