vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / plugins / ffmpeg / EncoderTable.h
blobc2d36184b8e6b94eb627ca50e9fc55fa77e41fff
1 /*
2 * Copyright 2009-2010 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
5 #ifndef ENCODER_TABLE_H
6 #define ENCODER_TABLE_H
9 #include <MediaFormats.h>
11 extern "C" {
12 #include "avcodec.h"
16 #if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
17 typedef AVCodecID CodecID;
18 #endif
21 struct EncoderDescription {
22 media_codec_info codec_info;
23 media_format_family format_family;
24 media_type input_type;
25 media_type output_type;
26 int bit_rate_scale;
30 extern const EncoderDescription gEncoderTable[];
31 extern const size_t gEncoderCount;
33 CodecID raw_audio_codec_id_for(const media_format& format);
36 #endif // ENCODER_TABLE_H