aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-28 14:07:50 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-28 20:14:48 +0200
commit128dda7016719fc763c0c9f754abb3196b9e18f3 (patch)
tree9154e3d96ebe1fa5262cf1e71465891f4d2ca66d /libavcodec/avcodec.h
parent4b0521eca9647a092388c44186ea07b3d4416cdb (diff)
downloadffmpeg-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.h9
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;