improved decoder documentation and fixed error with >8bppc media

This commit is contained in:
itsmattkc
2019-08-08 14:02:12 +10:00
parent 5b248b538f
commit 8730da4b43
3 changed files with 78 additions and 10 deletions
+5 -1
View File
@@ -106,7 +106,11 @@ void MediaInput::Process(const rational &time)
if (tex_buf_.IsCreated()) {
tex_buf_.Upload(frame->data());
} else {
tex_buf_.Create(QOpenGLContext::currentContext(), static_cast<olive::PixelFormat>(frame->format()), frame->width(), frame->height(), frame->data());
tex_buf_.Create(QOpenGLContext::currentContext(),
static_cast<olive::PixelFormat>(frame->format()),
frame->width(),
frame->height(),
frame->data());
}
texture_output_->set_value(tex_buf_.texture());