OSDN Git Service

Fix for issue 3444969 : Crash while generating transition
authorSantosh Madhava <smadhava@google.com>
Fri, 11 Feb 2011 04:46:53 +0000 (20:46 -0800)
committerSantosh Madhava <smadhava@google.com>
Fri, 11 Feb 2011 04:46:53 +0000 (20:46 -0800)
Change-Id: I63286dc66bfcd496aee45d26c8934f519ce63429

libvideoeditor/vss/src/VideoEditorResampler.cpp

index 47c9579..81709df 100755 (executable)
@@ -68,6 +68,7 @@ void VideoEditorResampler::releaseBuffer(AudioBufferProvider::Buffer *pBuffer) {
     if(pBuffer->raw != NULL) {
         free(pBuffer->raw);
         pBuffer->raw = NULL;
+        mTmpInBuffer = NULL;
     }
     pBuffer->frameCount = 0;
 }
@@ -88,6 +89,7 @@ M4OSA_Int32 LVAudioResamplerCreate(M4OSA_Int32 bitDepth, M4OSA_Int32 inChannelCo
     context->nbChannels = inChannelCount;
     context->outSamplingRate = sampleRate;
     context->mInput = NULL;
+    context->mTmpInBuffer = NULL;
 
     return ((M4OSA_Int32)context);
 }