changeset 7410:4c68f77c49ee libavcodec

add sample_fmts infrastructure: AVCodec->sample_fmts and SAMPLE_FMT_NB enum.
author pross
date Sat, 26 Jul 2008 08:48:26 +0000
parents 21770337ff2d
children d41948bf80a1
files avcodec.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Sat Jul 26 07:08:15 2008 +0000
+++ b/avcodec.h	Sat Jul 26 08:48:26 2008 +0000
@@ -347,6 +347,7 @@
     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 @@
      */
     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;
 
 /**