summaryrefslogtreecommitdiffstats
path: root/common/encode_lavc.c
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2019-12-07 18:23:42 +0100
committerAnton Kindestam <antonki@kth.se>2019-12-07 18:34:25 +0100
commitd5cabf73489fe165562adea765ed7f53fd264e53 (patch)
tree42ebb44b8d924489c1b0556b3ba5805d8880cfff /common/encode_lavc.c
parent83b742df77e9edd0fb2290567097c5d5dc0c2c55 (diff)
downloadmpv-d5cabf73489fe165562adea765ed7f53fd264e53.tar.bz2
mpv-d5cabf73489fe165562adea765ed7f53fd264e53.tar.xz
drm: avoid division by 0 in drm_pflip_cb with bad drivers
Seems like some drivers only increment msc every other page flip when running in interlaced mode (I'm looking at you nouveau). I.e. it seems to be incremented at the frame rate, rather than the field rate. Obviously we can't work with this, so shame the driver and bail. On intel this isn't an issue, as msc is incremented at field rate there. This means presentation feedback won't work correctly in interlaced modes with those drivers, but who in their right mind uses an interlaced mode these days, anyway?
Diffstat (limited to 'common/encode_lavc.c')
0 files changed, 0 insertions, 0 deletions