Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: media/formats/mp3/mp3_stream_parser.cc

Issue 149153002: MSE: Add StreamParser buffer remuxing utility and tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and addressed comments from PS2 Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/formats/mp3/mp3_stream_parser.cc
diff --git a/media/formats/mp3/mp3_stream_parser.cc b/media/formats/mp3/mp3_stream_parser.cc
index 832b9f92d7c011694d098e7a36bd70ed621bb3c4..ab152fc1170fcb825eedc3c4870bd1ad719a855d 100644
--- a/media/formats/mp3/mp3_stream_parser.cc
+++ b/media/formats/mp3/mp3_stream_parser.cc
@@ -419,7 +419,8 @@ int MP3StreamParser::ParseMP3Frame(const uint8* data,
}
scoped_refptr<StreamParserBuffer> buffer =
- StreamParserBuffer::CopyFrom(data, frame_size, true);
+ StreamParserBuffer::CopyFrom(data, frame_size, true,
+ DemuxerStream::AUDIO);
buffer->set_timestamp(timestamp_helper_->GetTimestamp());
buffer->set_duration(timestamp_helper_->GetFrameDuration(sample_count));
buffers->push_back(buffer);

Powered by Google App Engine
This is Rietveld 408576698