summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/tools/omx_test/file_reader_util.cc4
-rw-r--r--media/tools/omx_test/file_reader_util.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/media/tools/omx_test/file_reader_util.cc b/media/tools/omx_test/file_reader_util.cc
index 1ba7cea..a599d2f 100644
--- a/media/tools/omx_test/file_reader_util.cc
+++ b/media/tools/omx_test/file_reader_util.cc
@@ -46,6 +46,8 @@ YuvFileReader::YuvFileReader(const FilePath& path,
output_nv21_(enable_csc) {
}
+YuvFileReader::~YuvFileReader() {}
+
void YuvFileReader::Read(uint8** output, int* size) {
if (!file()) {
*size = 0;
@@ -230,6 +232,8 @@ H264FileReader::H264FileReader(const FilePath& path)
used_(0) {
}
+H264FileReader::~H264FileReader() {}
+
void H264FileReader::Read(uint8** output, int *size) {
// Fill the buffer when it's less than half full.
int read = 0;
diff --git a/media/tools/omx_test/file_reader_util.h b/media/tools/omx_test/file_reader_util.h
index 4bd028f..01216e8 100644
--- a/media/tools/omx_test/file_reader_util.h
+++ b/media/tools/omx_test/file_reader_util.h
@@ -61,6 +61,8 @@ class YuvFileReader : public BasicFileReader {
int height,
int loop_count,
bool output_nv21);
+ virtual ~YuvFileReader();
+
virtual void Read(uint8** output, int* size);
private:
@@ -105,6 +107,7 @@ class FFmpegFileReader : public FileReader {
class H264FileReader : public BasicFileReader {
public:
explicit H264FileReader(const FilePath& path);
+ virtual ~H264FileReader();
virtual void Read(uint8** output, int* size);
private: