Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-28 15:02:41 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-04-28 22:14:48 +0400
commit4b0521eca9647a092388c44186ea07b3d4416cdb (patch)
tree3eec1df527c3088dd4f950fcead7326ec334c5e6 /libavcodec/avcodec.h
parent82c71913e46552f9b41ed3f63571b7777a999f68 (diff)
lavc: add a channel_layout field to AVFrame.
The field is filled with the codec context information. FIXME need a minor version bump.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index c3a5192621..fed72bb69b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1257,6 +1257,16 @@ typedef struct AVFrame {
* - decoding: Read by user.
*/
int64_t pkt_pos;
+
+ /**
+ * channel layout of the audio frame
+ * - encoding: unused
+ * - decoding: read by user.
+ * Code outside libavcodec should access this field using:
+ * av_opt_ptr(avcodec_get_frame_class(), frame, "channel_layout")
+ */
+ int64_t channel_layout;
+
} AVFrame;
struct AVCodecInternal;