diff options
author | wm4 <wm4@nowhere> | 2017-01-11 10:56:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-11 11:02:57 +0100 |
commit | 77320ad45e3f1e6b08ecff4a3c0045a4864816a8 (patch) | |
tree | 9bcac59417990f8f496d3001cb7d479fb3c415d8 /TOOLS/lua | |
parent | 902424d065bab52185fc2d0b177ce75012e71819 (diff) | |
download | mpv-77320ad45e3f1e6b08ecff4a3c0045a4864816a8.tar.bz2 mpv-77320ad45e3f1e6b08ecff4a3c0045a4864816a8.tar.xz |
video: make decoder EOF reporting explicit
This is simpler and more robust, especially for the hwdec fallback case.
The most annoying issue is that C doesn't support multiple return values
(or sum types), so the decode call gets all awkward.
The hwdec fallback case does not need to try to produce some output
after the fallback anymore. Instead, it can use the normal "replay"
code path.
We invert the "eof" bool that vd_lavc.c used internally. The
receive_frame decoder API returns the inverse of EOF, because
returning "true" from the decode function if EOF was reached
feels awkward.
Diffstat (limited to 'TOOLS/lua')
0 files changed, 0 insertions, 0 deletions