]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/buffersrc.c
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
[ffmpeg] / libavfilter / buffersrc.c
index 5f4e9b7496af0828945d1ab0e7bec134b9819ed9..62b9e99cbfa2519592df3f39aec927e27fa7758d 100644 (file)
@@ -193,7 +193,7 @@ static av_cold int init_video(AVFilterContext *ctx, const char *args)
 #define A AV_OPT_FLAG_AUDIO_PARAM
 static const AVOption audio_options[] = {
     { "time_base",      NULL, OFFSET(time_base),           AV_OPT_TYPE_RATIONAL, { 0 }, 0, INT_MAX, A },
-    { "sample_rate",    NULL, OFFSET(sample_rate),         AV_OPT_TYPE_INT,      { 0 }, 0, INT_MAX, A },
+    { "sample_rate",    NULL, OFFSET(sample_rate),         AV_OPT_TYPE_INT,      { .i64 = 0 }, 0, INT_MAX, A },
     { "sample_fmt",     NULL, OFFSET(sample_fmt_str),      AV_OPT_TYPE_STRING,             .flags = A },
     { "channel_layout", NULL, OFFSET(channel_layout_str),  AV_OPT_TYPE_STRING,             .flags = A },
     { NULL },