【修改说明】:解决flush没有清空的问题

Signed-off-by: Atrotro <wanganzhouhh@163.com>
This commit is contained in:
Atrotro
2024-12-28 10:31:51 +08:00
parent ba935447d5
commit 015a3e2d5d
+3 -2
View File
@@ -614,9 +614,10 @@ static void flush(AVCodecContext *avctx)
if (che) {
for (j = 0; j <= 1; j++) {
memset(che->ch[j].saved, 0, sizeof(che->ch[j].saved));
#ifdef OHOS_OPT_COMPAT
memset(&che->sbr.data[j], 0, sizeof(che->sbr.data[j]));
#endif
}
memset(&che->sbr.data[0], 0, sizeof(che->sbr.data[0]));
memset(&che->sbr.data[1], 0, sizeof(che->sbr.data[1]));
}
}
}