am 6c537e53
: Merge "Properly handle start code in H264/AVC encoder output" into kraken
This commit is contained in:
@ -701,6 +701,7 @@ status_t StagefrightRecorder::reset() {
|
||||
mSampleRate = 8000;
|
||||
mAudioChannels = 1;
|
||||
mAudioBitRate = 12200;
|
||||
mInterleaveDurationUs = 0;
|
||||
|
||||
mOutputFd = -1;
|
||||
mFlags = 0;
|
||||
|
@ -334,8 +334,6 @@ static void StripStartcode(MediaBuffer *buffer) {
|
||||
}
|
||||
|
||||
off_t MPEG4Writer::addLengthPrefixedSample_l(MediaBuffer *buffer) {
|
||||
StripStartcode(buffer);
|
||||
|
||||
off_t old_offset = mOffset;
|
||||
|
||||
size_t length = buffer->range_length();
|
||||
@ -827,6 +825,8 @@ void MPEG4Writer::Track::threadEntry() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_avc) StripStartcode(buffer);
|
||||
|
||||
SampleInfo info;
|
||||
info.size = is_avc
|
||||
#if USE_NALLEN_FOUR
|
||||
|
Reference in New Issue
Block a user