summaryrefslogtreecommitdiffstats
path: root/video/out/drm_prime.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-15 22:26:39 +0100
committerwm4 <wm4@nowhere>2019-12-15 22:26:39 +0100
commit8e08a2ec972feb192fac27fa64f3ae68ad522d4a (patch)
tree64254d401407bc97ff4b61cc94e0fc43809399fb /video/out/drm_prime.h
parenta32db637b5c66c0304147caadf02d7b28083bcee (diff)
downloadmpv-8e08a2ec972feb192fac27fa64f3ae68ad522d4a.tar.bz2
mpv-8e08a2ec972feb192fac27fa64f3ae68ad522d4a.tar.xz
vd_lavc: simplify decode return error checking
This code checked AVFrame.buf[0] instead of the decode return code to see whether a frame was decoded. This is sort of suspicious; while I think that the lavc API actually guarantees it, it's not intuitive anyway. In addition, the code was unnecessarily roundabout. Replace it with a proper error code check. Remove the other error return (that was, or should have been, redundant before). The no-frame path is now cleanly separated. Add an assert on the frame-returned path; if this fails, lavc violated its own API.
Diffstat (limited to 'video/out/drm_prime.h')
0 files changed, 0 insertions, 0 deletions