FIX: reset decode buffer zero when scale width changed

Change-Id: Iaa2f99111dd5f7228b7b25e1be0a8cbdbfe982a6
Jira: STUDIO-8422
(cherry picked from commit 659ebc7d07a8f6045ba5443141b44277d7257cec)
This commit is contained in:
chunmao.guo
2024-10-12 11:33:52 +08:00
committed by Noisyfox
parent c3d9c27091
commit fed03193e2
2 changed files with 13 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ private:
AVFrame * frame_ = nullptr;
SwsContext * sws_ctx_ = nullptr;
bool got_frame_ = false;
int width_ { 0 }; // scale result width
std::vector<uint8_t> bits_;
};