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
3 // found in the LICENSE file.
5 #ifndef MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
6 #define MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
8 #include "base/basictypes.h"
9 #include "media/base/media_export.h"
15 // Interface for classes that allow reformating of FFmpeg bitstreams
16 class MEDIA_EXPORT FFmpegBitstreamConverter
{
18 virtual ~FFmpegBitstreamConverter() {};
20 // Reads the data in packet, and then overwrites this data with the
21 // converted version of packet
23 // Returns false if conversion failed. In this case, |packet| should not be
25 virtual bool ConvertPacket(AVPacket
* packet
) = 0;
30 #endif // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_