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 16:07:50 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-04-28 22:14:48 +0400
commit128dda7016719fc763c0c9f754abb3196b9e18f3 (patch)
tree9154e3d96ebe1fa5262cf1e71465891f4d2ca66d /libavcodec/options.c
parent4b0521eca9647a092388c44186ea07b3d4416cdb (diff)
lavc: add a sample_rate field to AVFrame.
The field is filled with the codec context information.
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 173729cbc2..3731b1f535 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -240,6 +240,7 @@ static const AVOption frame_options[]={
{"height", "", FOFFSET(height), AV_OPT_TYPE_INT, {.dbl = 0 }, 0, INT_MAX, 0},
{"format", "", FOFFSET(format), AV_OPT_TYPE_INT, {.dbl = -1 }, 0, INT_MAX, 0},
{"channel_layout", "", FOFFSET(channel_layout), AV_OPT_TYPE_INT64, {.dbl = 0 }, 0, INT64_MAX, 0},
+{"sample_rate", "", FOFFSET(sample_rate), AV_OPT_TYPE_INT, {.dbl = 0 }, 0, INT_MAX, 0},
{NULL},
};