From 0250edfd9c4d453f25a2f9827698ccf87ff5afff Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 17 八月 2017 10:22:18 +0800 Subject: [PATCH] merge home base --- RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp b/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp index 226e45a..fa689f0 100644 --- a/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp +++ b/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp @@ -202,6 +202,10 @@ return false; } + static FILE *pFile = fopen("/data/bb.264", "wb"); + fwrite(frame->buffer, sizeof(char), frame->buffSize, pFile); + fflush(pFile); + ssize_t bufidx = AMediaCodec_dequeueInputBuffer(in->codec, 2000); LOGP(DEBUG, "input buffer bufidx=%zd, inputFrameCount=%d", bufidx, in->inputFrameCount++); -- Gitblit v1.8.0