Commit 926bea48 authored by pross's avatar pross

add sample_fmts infrastructure: AVCodec->sample_fmts and SAMPLE_FMT_NB enum.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14412 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent afa79db8
......@@ -347,6 +347,7 @@ enum SampleFormat {
SAMPLE_FMT_S24, ///< signed 24 bits
SAMPLE_FMT_S32, ///< signed 32 bits
SAMPLE_FMT_FLT, ///< float
SAMPLE_FMT_NB ///< Number of sample formats. DO NOT USE if dynamically linking to libavcodec
};
/* in bytes */
......@@ -2264,6 +2265,7 @@ typedef struct AVCodec {
*/
const char *long_name;
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
const enum SampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1
} AVCodec;
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment