From 48537af62def25af3913baa9eb64a7da88366784 Mon Sep 17 00:00:00 2001 From: yangli Date: Sat, 8 Jul 2023 16:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangli --- .../onoutputbufferavailable_fuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp b/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp index fd0d7bd9..ad7f052a 100644 --- a/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp @@ -33,7 +33,7 @@ void OnOutputBufferAvailableFuzzTest(const uint8_t* data, size_t size) std::shared_ptr encoder = std::make_shared(listener); std::shared_ptr encoderCallback = std::make_shared(encoder); uint32_t index = *(reinterpret_cast(data)); - Media::AVCodecBufferInfo info = *(reinterpret_cast(data)); + Media::AVCodecBufferInfo info; Media::AVCodecBufferFlag flag = Media::AVCODEC_BUFFER_FLAG_NONE; encoderCallback->OnOutputBufferAvailable(index, info, flag); } -- Gitee