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 fe536e1 commit ec55c08Copy full SHA for ec55c08
src/frame.h
@@ -265,7 +265,10 @@ class Frame : public FFWrapperPtr<AVFrame>
265
bool isComplete() const { return m_isComplete; }
266
267
bool isValid() const {
268
- return (!isNull() && (m_raw->data[0] && m_raw->linesize[0]) || ((m_raw->format == AV_PIX_FMT_VAAPI)));
+ 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(); }
0 commit comments