sujinwen
2017-07-25 c7caa54d8d58af6159f2c758ad5d6687d461a333
RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp
@@ -172,8 +172,11 @@
void PL_AndroidMediaCodecDecoder::finit()
{
   PL_AMCD_Internal* in = (PL_AMCD_Internal*)internal;
   //todo release codec
   // call AMediaCodec_stop
   AMediaCodec_stop(in->codec);
   AMediaCodec_delete(in->codec);
   in->reset();
}
bool PL_AndroidMediaCodecDecoder::pay(const PipeMaterial& pm)
@@ -340,7 +343,11 @@
                in->lastMbfBuffer.buffSize = in->buffSize;
                in->lastMbfBuffer.width = in->config.ak_width;
                in->lastMbfBuffer.height = in->config.ak_height;
                microseconds_to_timeval(info.presentationTimeUs, in->lastMbfBuffer.pts);
            if (in->config.ptsUseAbsoluteTime)
               gettimeofday(&(in->lastMbfBuffer.pts), nullptr);
            else
               microseconds_to_timeval(info.presentationTimeUs, in->lastMbfBuffer.pts);
                //if (in->lastMbfBuffer.buffSize > 10)
            //{