diff options
author | Gerard Sole <g.sole.ca@gmail.com> | 2021-12-15 20:00:31 +0100 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2021-12-22 12:05:41 +0100 |
commit | 18ad360648cd185b0ffbb444eedcbf5732774408 (patch) | |
tree | 169164ad073b7b6cee2785a58d920208704a1973 /libavformat/concatdec.c | |
parent | 2ac8bcec6374da529e08a684d587488287b8ed7f (diff) | |
download | ffmpeg-18ad360648cd185b0ffbb444eedcbf5732774408.tar.gz |
libavformat: add side_data copy in concat demuxer
Adds support for concat demuxer to copy the side data information
from the input file to the resulting file. It will behave like the
metadata copy, where the metadata of the first file is kept in the
the output file.
Extract the current code that already performs the stream side_data
copy into a separate method and reuse the method in the concat demuxer.
Signed-off-by: Gerard Sole <g.sole.ca@gmail.com>
Diffstat (limited to 'libavformat/concatdec.c')
-rw-r--r-- | libavformat/concatdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 8d80e536d1..0603c6e254 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -191,6 +191,7 @@ static int copy_stream_props(AVStream *st, AVStream *source_st) avpriv_set_pts_info(st, 64, source_st->time_base.num, source_st->time_base.den); av_dict_copy(&st->metadata, source_st->metadata, 0); + ff_stream_side_data_copy(st, source_st); return 0; } |