From 470d4180e2b86eee41c9c14910e4131d16edb8b7 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 25 五月 2021 17:02:54 +0800 Subject: [PATCH] bug fixed gb28181 capture --- csrc/worker/decoder.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/csrc/worker/decoder.cpp b/csrc/worker/decoder.cpp index ce369af..5e8a7c9 100644 --- a/csrc/worker/decoder.cpp +++ b/csrc/worker/decoder.cpp @@ -65,6 +65,8 @@ } void decoder::GetFrame(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id){ + *data = NULL; + *length = 0; AVFrame *frame = NULL; -- Gitblit v1.8.0