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 fe536e1Copy full SHA for fe536e1
src/frame.h
@@ -264,7 +264,9 @@ 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() && (m_raw->data[0] && m_raw->linesize[0]) || ((m_raw->format == AV_PIX_FMT_VAAPI)));
269
+ }
270
271
operator bool() const { return isValid() && isComplete(); }
272
0 commit comments