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

Unified Diff: media/filters/h264_parser.h

Issue 2371783002: Remove stl_util's deletion functions from media/. (Closed)
Patch Set: wolenetz 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/filters/frame_processor.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/h264_parser.h
diff --git a/media/filters/h264_parser.h b/media/filters/h264_parser.h
index 64519e8fd7a95eed0bd4fa2f00ddb36c7735c70f..e7f4bc4c4eb4a4ce7fca5cfab103a5ca9ca064eb 100644
--- a/media/filters/h264_parser.h
+++ b/media/filters/h264_parser.h
@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <map>
+#include <memory>
#include <vector>
#include "base/macros.h"
@@ -486,10 +487,8 @@ class MEDIA_EXPORT H264Parser {
H264BitReader br_;
// PPSes and SPSes stored for future reference.
- typedef std::map<int, H264SPS*> SPSById;
- typedef std::map<int, H264PPS*> PPSById;
- SPSById active_SPSes_;
- PPSById active_PPSes_;
+ std::map<int, std::unique_ptr<H264SPS>> active_SPSes_;
+ std::map<int, std::unique_ptr<H264PPS>> active_PPSes_;
// Ranges of encrypted bytes in the buffer passed to
// SetEncryptedStream().
« no previous file with comments | « media/filters/frame_processor.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698