1 // Copyright 2014 The Chromium Authors
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 "media/base/media_export.h"
14 // Interface for classes that allow reformating of FFmpeg bitstreams
15 class MEDIA_EXPORT FFmpegBitstreamConverter {
17 virtual ~FFmpegBitstreamConverter() {}
19 // Reads the data in packet, and then overwrites this data with the
20 // converted version of packet
22 // Returns false if conversion failed. In this case, |packet| should not be
24 virtual bool ConvertPacket(AVPacket* packet) = 0;
29 #endif // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_