From 4d7adec8bd211d3900563955f2e0863dfb3bf7e8 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 22 Aug 2012 10:07:54 +0200 Subject: AVOptions: store defaults for INT64 options in int64 union member. Double does not have enough precision to represent all int64 numbers exactly. --- libavfilter/af_asyncts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/af_asyncts.c') diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index b58e2499d8..1f38232f1a 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -50,7 +50,7 @@ static const AVOption options[] = { { "min_delta", "Minimum difference between timestamps and audio data " "(in seconds) to trigger padding/trimmin the data.", OFFSET(min_delta_sec), AV_OPT_TYPE_FLOAT, { 0.1 }, 0, INT_MAX, A }, { "max_comp", "Maximum compensation in samples per second.", OFFSET(max_comp), AV_OPT_TYPE_INT, { 500 }, 0, INT_MAX, A }, - { "first_pts", "Assume the first pts should be this value.", OFFSET(pts), AV_OPT_TYPE_INT64, { AV_NOPTS_VALUE }, INT64_MIN, INT64_MAX, A }, + { "first_pts", "Assume the first pts should be this value.", OFFSET(pts), AV_OPT_TYPE_INT64, { .i64 = AV_NOPTS_VALUE }, INT64_MIN, INT64_MAX, A }, { NULL }, }; -- cgit v1.2.3