houxiao
2017-08-17 0250edfd9c4d453f25a2f9827698ccf87ff5afff
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++);