mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 15:08:09 +08:00
lavf: deprecate avformat_transfer_internal_stream_timing_info()
And av_stream_get_codec_timebase(). They were both added for ffmpeg CLI, which no longer calls either of them. Furthermore the notion of "internal stream timing info" that needs to be transferred with a special magic API function is fundamentally flawed and should be removed.
This commit is contained in:
@ -770,6 +770,7 @@ AVRational av_guess_frame_rate(AVFormatContext *format, AVStream *st, AVFrame *f
|
||||
return fr;
|
||||
}
|
||||
|
||||
#if FF_API_INTERNAL_TIMING
|
||||
int avformat_transfer_internal_stream_timing_info(const AVOutputFormat *ofmt,
|
||||
AVStream *ost, const AVStream *ist,
|
||||
enum AVTimebaseSource copy_tb)
|
||||
@ -849,6 +850,7 @@ AVRational av_stream_get_codec_timebase(const AVStream *st)
|
||||
{
|
||||
return cffstream(st)->avctx ? cffstream(st)->avctx->time_base : cffstream(st)->transferred_mux_tb;
|
||||
}
|
||||
#endif
|
||||
|
||||
void avpriv_set_pts_info(AVStream *st, int pts_wrap_bits,
|
||||
unsigned int pts_num, unsigned int pts_den)
|
||||
|
Reference in New Issue
Block a user