Added AVPacket.data initializing code
authorJungYumin <y_m.jung@samsung.com>
Fri, 5 Apr 2013 09:35:58 +0000 (18:35 +0900)
committerJungYumin <y_m.jung@samsung.com>
Fri, 5 Apr 2013 09:35:58 +0000 (18:35 +0900)
Change-Id: Ie33290f556361732a17543ed525432eb81ea21a8
Signed-off-by: JungYumin <y_m.jung@samsung.com>
src/FMedia_AacEncoder.cpp

index 6ba3e9b..32d5cb8 100644 (file)
@@ -201,7 +201,7 @@ _AacEncoder::Encode(const byte* srcBuf, int srcBufSize, int &srcBufUsed, byte* d
        int minDstBufLength = FF_MIN_BUFFER_SIZE;
        int gotOutput = 0;
        AVPacket outPacket;
-
+       outPacket.data = NULL;
        SysTryReturnResult(NID_MEDIA, __pCodecCtx, E_INVALID_STATE, "not constructed");
 
        minSrcBufLength = __pCodecCtx->frame_size * S16_SAMPLE_SIZE * __pCodecCtx->channels;