ffmpeg/avframe-queue: Fix warning about 'unsigned/signed !='

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-07-22 00:52:12 +02:00
parent 6851f2321a
commit 8b429db62e
+2 -1
View File
@@ -105,7 +105,8 @@ std::shared_ptr<AVFrame> ffmpeg::avframe_queue::pop()
ret = create_frame();
} else {
frames.pop_front();
if ((ret->width != this->resolution.first) || (ret->height != this->resolution.second)
if ((static_cast<uint32_t>(ret->width) != this->resolution.first)
|| (static_cast<uint32_t>(ret->height) != this->resolution.second)
|| (ret->format != this->format)) {
ret = nullptr;
}