[FFmpeg-cvslog] avfilter/asyncts: use AV_OPT_TYPE_BOOL for compensate option

Clément Bœsch git at videolan.org
Tue Sep 8 23:12:52 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Sep  8 23:09:59 2015 +0200| [fad084186957a25b0ec9918836d89f44817eff16] | committer: Clément Bœsch

avfilter/asyncts: use AV_OPT_TYPE_BOOL for compensate option

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fad084186957a25b0ec9918836d89f44817eff16
---

 libavfilter/af_asyncts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c
index 4be093b..214cefd 100644
--- a/libavfilter/af_asyncts.c
+++ b/libavfilter/af_asyncts.c
@@ -53,7 +53,7 @@ typedef struct ASyncContext {
 #define A AV_OPT_FLAG_AUDIO_PARAM
 #define F AV_OPT_FLAG_FILTERING_PARAM
 static const AVOption asyncts_options[] = {
-    { "compensate", "Stretch/squeeze the data to make it match the timestamps", OFFSET(resample),      AV_OPT_TYPE_INT,   { .i64 = 0 },   0, 1,       A|F },
+    { "compensate", "Stretch/squeeze the data to make it match the timestamps", OFFSET(resample),      AV_OPT_TYPE_BOOL,  { .i64 = 0 },   0, 1,       A|F },
     { "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, { .dbl = 0.1 }, 0, INT_MAX, A|F },
     { "max_comp",   "Maximum compensation in samples per second.",              OFFSET(max_comp),      AV_OPT_TYPE_INT,   { .i64 = 500 }, 0, INT_MAX, A|F },



More information about the ffmpeg-cvslog mailing list