大変長くなるのでざっと省略して、

static int mov\_seek\_stream(AVStream \*st, int64\_t timestamp, int flags)
MOVStreamContext \*sc = st->priv\_data;
.....
time\_sample = next;
}
}
+   st->cur\_dts = sample;
return sample;

でよさそう。