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

Unified Diff: media/formats/mpeg/adts_header_parser.h

Issue 2378443002: Fix MSE ADTS parsing on Android. (Closed)
Patch Set: Address comments. Created 4 years, 3 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
« no previous file with comments | « media/formats/mp2t/es_parser_adts.cc ('k') | media/formats/mpeg/adts_header_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mpeg/adts_header_parser.h
diff --git a/media/formats/mpeg/adts_header_parser.h b/media/formats/mpeg/adts_header_parser.h
deleted file mode 100644
index c15a779a043ccd025616ca56d947752d5f2a5cc6..0000000000000000000000000000000000000000
--- a/media/formats/mpeg/adts_header_parser.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_FORMATS_MPEG_ADTS_HEADER_PARSER_H_
-#define MEDIA_FORMATS_MPEG_ADTS_HEADER_PARSER_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include "media/base/media_export.h"
-
-namespace media {
-
-class AudioDecoderConfig;
-
-// Parses ADTS header |adts_header| (4 bytes) and extracts the information into
-// |config| structure if the parsing succeeds. Returns true if the parsing
-// succeeds or false otherwise. The |is_sbr| flag stands for Spectral Band
-// Replication. |orig_sample_rate| will return the sample frequency before
-// doubling in SBR.
-MEDIA_EXPORT bool ParseAdtsHeader(const uint8_t* adts_header,
- bool is_sbr,
- AudioDecoderConfig* config,
- size_t* orig_sample_rate);
-
-} // namespace media
-
-#endif // MEDIA_FORMATS_MPEG_ADTS_HEADER_PARSER_H_
« no previous file with comments | « media/formats/mp2t/es_parser_adts.cc ('k') | media/formats/mpeg/adts_header_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698