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

Unified Diff: media/filters/ffmpeg_audio_decoder.h

Issue 197793005: Convert scoped_ptr_malloc -> scoped_ptr, part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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/ffmpeg/ffmpeg_deleters.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.h
diff --git a/media/filters/ffmpeg_audio_decoder.h b/media/filters/ffmpeg_audio_decoder.h
index 0b646197f4823e8e7127f467c79c96425ef2f5aa..94aaf3def071b233d793e3da6fa32f069f279191 100644
--- a/media/filters/ffmpeg_audio_decoder.h
+++ b/media/filters/ffmpeg_audio_decoder.h
@@ -14,6 +14,7 @@
#include "media/base/audio_decoder.h"
#include "media/base/demuxer_stream.h"
#include "media/base/sample_format.h"
+#include "media/ffmpeg/ffmpeg_deleters.h"
struct AVCodecContext;
struct AVFrame;
@@ -26,8 +27,6 @@ namespace media {
class AudioTimestampHelper;
class DecoderBuffer;
-class ScopedPtrAVFreeContext;
-class ScopedPtrAVFreeFrame;
class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
public:
@@ -80,8 +79,8 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
DecoderState state_;
// FFmpeg structures owned by this object.
- scoped_ptr_malloc<AVCodecContext, ScopedPtrAVFreeContext> codec_context_;
- scoped_ptr_malloc<AVFrame, ScopedPtrAVFreeFrame> av_frame_;
+ scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_;
+ scoped_ptr<AVFrame, ScopedPtrAVFreeFrame> av_frame_;
// Decoded audio format.
int bytes_per_channel_;
« no previous file with comments | « media/ffmpeg/ffmpeg_deleters.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698