From 828f254a2227ae3b6c0d33e132b1ab93d09fd51c Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Sat, 17 Feb 2024 13:35:40 -0600 Subject: [PATCH] Set best_effort_timestamp when setting pts. --- avutil/avutil_stubs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avutil/avutil_stubs.c b/avutil/avutil_stubs.c index 155e6c0a..bf2b31ca 100644 --- a/avutil/avutil_stubs.c +++ b/avutil/avutil_stubs.c @@ -643,6 +643,8 @@ CAMLprim value ocaml_avutil_frame_set_pts(value _frame, value _pts) { else frame->pts = Int64_val(Field(_pts, 0)); + frame->best_effort_timestamp = frame->pts; + CAMLreturn(Val_unit); }