mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
vo_lavc: fix -ovoffset.
Previously, using it led to no single frame being output, ever.
This commit is contained in:
+3
-1
@@ -410,7 +410,9 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
|
||||
// we will ONLY encode this frame if it can be encoded at at least
|
||||
// vc->mindeltapts after the last encoded frame!
|
||||
int64_t skipframes =
|
||||
vc->lastencodedipts + vc->mindeltapts - vc->lastipts;
|
||||
(vc->lastencodedipts == MP_NOPTS_VALUE)
|
||||
? 0
|
||||
: vc->lastencodedipts + vc->mindeltapts - vc->lastipts;
|
||||
if (skipframes < 0)
|
||||
skipframes = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user