diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-28 14:07:50 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-28 20:14:48 +0200 |
commit | 128dda7016719fc763c0c9f754abb3196b9e18f3 (patch) | |
tree | 9154e3d96ebe1fa5262cf1e71465891f4d2ca66d /libavcodec/avcodec.h | |
parent | 4b0521eca9647a092388c44186ea07b3d4416cdb (diff) | |
download | ffmpeg-128dda7016719fc763c0c9f754abb3196b9e18f3.tar.gz |
lavc: add a sample_rate field to AVFrame.
The field is filled with the codec context information.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index fed72bb69b..ba51ec1928 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1267,6 +1267,15 @@ typedef struct AVFrame { */ int64_t channel_layout; + /** + * sample rate 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, "sample_rate") + */ + int sample_rate; + } AVFrame; struct AVCodecInternal; |