aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-04-19 19:47:01 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-05-18 17:27:06 -0400
commit64150ff014708b4b00cb5d76237e9e908ac0fbfc (patch)
treee0cef9369e28d5611467288c4b12bf4a455d5104 /libavcodec/avcodec.h
parent32f8fb8ecf8178b9c9ec8d7152f1fdd8537f7f3a (diff)
downloadffmpeg-64150ff014708b4b00cb5d76237e9e908ac0fbfc.tar.gz
Add request_sample_fmt field to AVCodecContext.
This will allow audio decoders to support output of different sample formats as a runtime option.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 2eb218ba4f..e067ee0273 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2836,6 +2836,13 @@ typedef struct AVCodecContext {
* - decoding: Set by libavcodec.
*/
enum AVAudioServiceType audio_service_type;
+
+ /**
+ * Used to request a sample format from the decoder.
+ * - encoding: unused.
+ * - decoding: Set by user.
+ */
+ enum AVSampleFormat request_sample_fmt;
} AVCodecContext;
/**