summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-05-04 19:12:31 +0200
committerAnton Khirnov <anton@khirnov.net>2012-05-07 07:08:03 +0200
commit828bd088f3f74dcdb8451d58557b0d8caefa3227 (patch)
treee5086b5a07fb63939021eae2a5adad38330fcb38 /libavcodec/avcodec.h
parent37f4a976b374398a846b354cf16417b9a81d57e2 (diff)
lavc: add sample rate and channel layout to AVFrame.
Rationale is the same as for video width/height etc.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8020582b6e..bec13e7c1a 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1207,6 +1207,22 @@ typedef struct AVFrame {
* - decoding: Set by libavcodec.
*/
uint8_t motion_subsample_log2;
+
+ /**
+ * Sample rate of the audio data.
+ *
+ * - encoding: unused
+ * - decoding: set by get_buffer()
+ */
+ int sample_rate;
+
+ /**
+ * Channel layout of the audio data.
+ *
+ * - encoding: unused
+ * - decoding: set by get_buffer()
+ */
+ uint64_t channel_layout;
} AVFrame;
struct AVCodecInternal;