diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-28 13:02:41 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-28 20:14:48 +0200 |
commit | 4b0521eca9647a092388c44186ea07b3d4416cdb (patch) | |
tree | 3eec1df527c3088dd4f950fcead7326ec334c5e6 /libavcodec/avcodec.h | |
parent | 82c71913e46552f9b41ed3f63571b7777a999f68 (diff) | |
download | ffmpeg-4b0521eca9647a092388c44186ea07b3d4416cdb.tar.gz |
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.h | 10 |
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; |