summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-05-20 17:55:52 -0700
committerJames Dong <jdong@google.com>2010-05-20 18:02:52 -0700
commite136c3bb38e88315bf8797a464ebf2c788296b22 (patch)
treec978a5038df7663487fa0ae3bbaadb8517d38f99 /media/libmediaplayerservice
parent64105f956f15969dbe1ec7319f6caa2a984e588b (diff)
downloadframeworks_av-e136c3bb38e88315bf8797a464ebf2c788296b22.zip
frameworks_av-e136c3bb38e88315bf8797a464ebf2c788296b22.tar.gz
frameworks_av-e136c3bb38e88315bf8797a464ebf2c788296b22.tar.bz2
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
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r--media/libmediaplayerservice/StagefrightRecorder.cpp1
1 files changed, 1 insertions, 0 deletions
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;