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

Side by Side Diff: media/formats/mpeg/mpeg1_audio_stream_parser.h

Issue 2378443002: Fix MSE ADTS parsing on Android. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ 5 #ifndef MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ 6 #define MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ~MPEG1AudioStreamParser() override; 72 ~MPEG1AudioStreamParser() override;
73 73
74 private: 74 private:
75 // MPEGAudioStreamParserBase overrides. 75 // MPEGAudioStreamParserBase overrides.
76 int ParseFrameHeader(const uint8_t* data, 76 int ParseFrameHeader(const uint8_t* data,
77 int size, 77 int size,
78 int* frame_size, 78 int* frame_size,
79 int* sample_rate, 79 int* sample_rate,
80 ChannelLayout* channel_layout, 80 ChannelLayout* channel_layout,
81 int* sample_count, 81 int* sample_count,
82 bool* metadata_frame) const override; 82 bool* metadata_frame,
83 std::vector<uint8_t>* extra_data) const override;
83 84
84 DISALLOW_COPY_AND_ASSIGN(MPEG1AudioStreamParser); 85 DISALLOW_COPY_AND_ASSIGN(MPEG1AudioStreamParser);
85 }; 86 };
86 87
87 } // namespace media 88 } // namespace media
88 89
89 #endif // MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ 90 #endif // MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « media/formats/mpeg/adts_stream_parser.cc ('k') | media/formats/mpeg/mpeg1_audio_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698