From eb68a1e3ad5fb24b4c674b8f2fd529b8302c7d97 Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 30 十二月 2016 13:48:14 +0800
Subject: [PATCH] 

---
 RtspFace/PL_RTSPClient.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/RtspFace/PL_RTSPClient.cpp b/RtspFace/PL_RTSPClient.cpp
index 71869db..ae885d7 100644
--- a/RtspFace/PL_RTSPClient.cpp
+++ b/RtspFace/PL_RTSPClient.cpp
@@ -1,5 +1,6 @@
 #include "PL_RTSPClient.h"
 #include "MaterialBuffer.h"
+#include "logger.h"
 #include <pthread.h>
 
 void rtsp_client_sdp_callback(void* arg, const char* val);
@@ -179,8 +180,8 @@
 	}
 	
 	pm.type = PipeMaterial::PMT_FRAME;
-	pm.buffer = (uint8_t*)(&(in->lastFrame));
-	pm.buffSize = sizeof(in->lastFrame);
+	pm.buffer = &(in->lastFrame);
+	pm.buffSize = 0;
 	pm.former = this;
 
 	return true;
@@ -223,6 +224,8 @@
 	in->lastFrame.type = MB_Frame::MBFT_H264_NALU;
 	in->lastFrame.buffer = buffer;
 	in->lastFrame.buffSize = buffSize;
+	in->lastFrame.width = 0;
+	in->lastFrame.height = 0;
 	in->lastFrame.pts = presentationTime;
 	
 	int ret = pthread_mutex_unlock(in->frame_mutex);

--
Gitblit v1.8.0