aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-29 12:34:15 +0100
committerClément Bœsch <ubitux@gmail.com>2013-03-31 11:58:20 +0200
commit01b2d1288ae3aed39892b15b7e2cf4a5cd54c50f (patch)
tree2ade1f344176f965eae16f7fe57914a4bb7f6a43
parent4dae804d3c6d2886fa6f2b86c0bf7b1d8fce0c91 (diff)
downloadffmpeg-01b2d1288ae3aed39892b15b7e2cf4a5cd54c50f.tar.gz
lavfi/volume: use designated initializers for the sample_fmts declaration.
-rw-r--r--libavfilter/af_volume.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 0dccac8072..0a6504e118 100644
--- a/libavfilter/af_volume.c
+++ b/libavfilter/af_volume.c
@@ -80,8 +80,7 @@ static int query_formats(AVFilterContext *ctx)
AVFilterFormats *formats = NULL;
AVFilterChannelLayouts *layouts;
static const enum AVSampleFormat sample_fmts[][7] = {
- /* PRECISION_FIXED */
- {
+ [PRECISION_FIXED] = {
AV_SAMPLE_FMT_U8,
AV_SAMPLE_FMT_U8P,
AV_SAMPLE_FMT_S16,
@@ -90,14 +89,12 @@ static int query_formats(AVFilterContext *ctx)
AV_SAMPLE_FMT_S32P,
AV_SAMPLE_FMT_NONE
},
- /* PRECISION_FLOAT */
- {
+ [PRECISION_FLOAT] = {
AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE
},
- /* PRECISION_DOUBLE */
- {
+ [PRECISION_DOUBLE] = {
AV_SAMPLE_FMT_DBL,
AV_SAMPLE_FMT_DBLP,
AV_SAMPLE_FMT_NONE