From e136c3bb38e88315bf8797a464ebf2c788296b22 Mon Sep 17 00:00:00 2001 From: James Dong Date: Thu, 20 May 2010 17:55:52 -0700 Subject: Properly handle start code in H264/AVC encoder output - Some H264/AVC encoder output start code in each output buffer, and others don't. This patch always strips the start code first so that the sample contains the correct size. - Also properly initialize the interleave duration. Change-Id: I692043ce7e38f0215e1097aad9e847a57907b6e4 --- media/libmediaplayerservice/StagefrightRecorder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'media/libmediaplayerservice') diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp index de64714..572389f 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.cpp +++ b/media/libmediaplayerservice/StagefrightRecorder.cpp @@ -701,6 +701,7 @@ status_t StagefrightRecorder::reset() { mSampleRate = 8000; mAudioChannels = 1; mAudioBitRate = 12200; + mInterleaveDurationUs = 0; mOutputFd = -1; mFlags = 0; -- cgit v1.1