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>
This commit is contained in:
Pierre-Anthony Lemieux
2022-08-06 16:35:19 -07:00
committed by Andreas Rheinhardt
parent 7158f1e64d
commit f2403d1530
8 changed files with 84 additions and 55 deletions

View File

@@ -625,6 +625,17 @@ enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags);
*/
int ff_stream_side_data_copy(AVStream *dst, const AVStream *src);
/**
* Create a new stream and copy to it all parameters from a source stream, with
* the exception of the index field, which is set when the new stream is
* created.
*
* @param dst_ctx pointer to the context in which the new stream is created
* @param src pointer to source AVStream
* @return pointer to the new stream or NULL on error
*/
AVStream *ff_stream_clone(AVFormatContext *dst_ctx, const AVStream *src);
/**
* Wrap ffurl_move() and log if error happens.
*