We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e167a4 commit 69b6bd7Copy full SHA for 69b6bd7
src/frame.h
@@ -264,7 +264,12 @@ class Frame : public FFWrapperPtr<AVFrame>
264
265
bool isComplete() const { return m_isComplete; }
266
267
- bool isValid() const { return (!isNull() && m_raw->data[0] && m_raw->linesize[0]); }
+ bool isValid() const {
268
+ return (!isNull() &&
269
+ ((m_raw->data[0] && m_raw->linesize[0]) ||
270
+ ((m_raw->format == AV_PIX_FMT_VAAPI) && ((intptr_t)m_raw->data[3] > 0)))
271
+ );
272
+ }
273
274
operator bool() const { return isValid() && isComplete(); }
275
0 commit comments