fftools/ffmpeg_enc: do not set AVStream timebase directly

Instead, pass the encoder context to of_stream_init() and have the muxer
take the timebase from there. Note that the muxer can currently access
the codec context directly, but that will change in future commits.

This is a step towards decoupling encoders from muxers.
This commit is contained in:
Anton Khirnov
2024-09-10 10:55:28 +02:00
parent 1ebd521a4e
commit 238f439992
4 changed files with 12 additions and 8 deletions

View File

@@ -3385,7 +3385,7 @@ int of_open(const OptionsContext *o, const char *filename, Scheduler *sch)
OutputStream *ost = of->streams[i];
if (!ost->enc) {
err = of_stream_init(of, ost);
err = of_stream_init(of, ost, NULL);
if (err < 0)
return err;
}