From 61afc57ed1b0a9607c0f88d32ac5f62d40078140 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 27 Apr 2021 23:05:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_player.cpp b/tests/test_player.cpp index 17b9554f..5a5005e5 100644 --- a/tests/test_player.cpp +++ b/tests/test_player.cpp @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) { if(!merger){ merger.set(FrameMerger::h264_prefix); } - merger.get().inputFrame(frame,[&](uint32_t dts,uint32_t pts,const Buffer::Ptr &buffer){ + merger.get().inputFrame(frame,[&](uint32_t dts,uint32_t pts,const Buffer::Ptr &buffer, bool have_idr){ AVFrame *pFrame = nullptr; bool flag = decoder.get().inputVideo((unsigned char *) buffer->data(), buffer->size(), dts, &pFrame); if (flag) { From adc3d743441cfab55c67519a584c313775986091 Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Wed, 28 Apr 2021 17:32:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/pusher.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/tests/pusher.c b/api/tests/pusher.c index 3c5d580b..1ea158f1 100644 --- a/api/tests/pusher.c +++ b/api/tests/pusher.c @@ -48,9 +48,9 @@ void release_pusher(mk_media *ptr) { void release_context(Context **ptr){ if (ptr && *ptr) { - release_pusher((*ptr)->pusher); - release_media((*ptr)->media); - release_player((*ptr)->player); + release_pusher(&(*ptr)->pusher); + release_media(&(*ptr)->media); + release_player(&(*ptr)->player); free(*ptr); *ptr = NULL; }