blob: dd133f4ea98f17c51ad4950e53fabed3d49d1ff2 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/media_export.h"
struct AVPacket;
namespace media {
// Interface for classes that allow reformating of FFmpeg bitstreams
class MEDIA_EXPORT FFmpegBitstreamConverter {
virtual ~FFmpegBitstreamConverter() {}
// Reads the data in packet, and then overwrites this data with the
// converted version of packet
// Returns false if conversion failed. In this case, |packet| should not be
// changed.
virtual bool ConvertPacket(AVPacket* packet) = 0;
} // namespace media