From 1732d89403b724f56c1e35794c66890eeaf76341 Mon Sep 17 00:00:00 2001 From: Jan Sebechlebsky Date: Wed, 13 Jul 2016 17:00:11 +0200 Subject: avformat/utils: Add ff_stream_encode_params_copy() Signed-off-by: Jan Sebechlebsky Signed-off-by: Marton Balint --- libavformat/internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index 647ad65fb2..1b44beafb3 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -490,6 +490,15 @@ int ff_generate_avci_extradata(AVStream *st); */ int ff_stream_add_bitstream_filter(AVStream *st, const char *name, const char *args); +/** + * Copy encoding parameters from source to destination stream + * + * @param dst pointer to destination AVStream + * @param src pointer to source AVStream + * @return >=0 on success, AVERROR code on error + */ +int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src); + /** * Wrap errno on rename() error. * -- cgit v1.2.3