fftools/ffmpeg_dec: pass input timebase through DecoderOpts

Do not read it from AVStream directly.

This is a step towards decoupling Decoder and InputStream.
This commit is contained in:
Anton Khirnov
2024-01-23 18:42:20 +01:00
parent b27de18e4f
commit 9702817662
3 changed files with 5 additions and 4 deletions

View File

@ -298,6 +298,8 @@ typedef struct DecoderOpts {
char *hwaccel_device;
enum AVPixelFormat hwaccel_output_format;
AVRational time_base;
// Either forced (when DECODER_FLAG_FRAMERATE_FORCED is set) or
// estimated (otherwise) video framerate.
AVRational framerate;