aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-07-26 08:48:26 +0000
committerPeter Ross <pross@xvid.org>2008-07-26 08:48:26 +0000
commit88a07af7404a3c46b5b03a1ce1d0cf9a6b3207b4 (patch)
tree94a9184b5c73432c9eaf08b893985310efc2c031 /libavcodec
parent6916e38a1cc3f29ea6865ca2bd6cfe65799945bc (diff)
downloadffmpeg-88a07af7404a3c46b5b03a1ce1d0cf9a6b3207b4.tar.gz
add sample_fmts infrastructure: AVCodec->sample_fmts and SAMPLE_FMT_NB enum.
Originally committed as revision 14412 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f42d3906e5..ba0df354a2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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;
/**