fftools/ffmpeg: move initializing next_[pd]ts to add_input_streams()

They are initialized to constants, so it makes most sense to do it as
soon as possible.
This commit is contained in:
Anton Khirnov
2023-03-20 17:01:59 +01:00
parent 8e23a62eff
commit 87e9f5ad3c
2 changed files with 3 additions and 3 deletions

View File

@@ -2848,9 +2848,6 @@ static int init_input_stream(InputStream *ist, char *error, int error_len)
assert_avoptions(ist->decoder_opts);
}
ist->next_pts = AV_NOPTS_VALUE;
ist->next_dts = AV_NOPTS_VALUE;
return 0;
}