[SCM] libav/experimental: add OPT_INT64 option

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:58:19 UTC 2013


The following commit has been merged in the experimental branch:
commit ffdf9a1f2d20de9e5ffeb0ef42c78c9ab52f1d49
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Fri Mar 30 09:43:39 2007 +0000

    add OPT_INT64 option
    
    Originally committed as revision 8554 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/cmdutils.c b/cmdutils.c
index 36ef1a9..d5095ce 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -98,6 +98,8 @@ unknown_opt:
                 *po->u.int_arg = 1;
             } else if (po->flags & OPT_INT) {
                 *po->u.int_arg = atoi(arg);
+            } else if (po->flags & OPT_INT64) {
+                *po->u.int64_arg = atoll(arg);
             } else if (po->flags & OPT_FLOAT) {
                 *po->u.float_arg = atof(arg);
             } else if (po->flags & OPT_FUNC2) {
diff --git a/cmdutils.h b/cmdutils.h
index 49b753d..13a61c0 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -36,12 +36,14 @@ typedef struct {
 #define OPT_FLOAT  0x0100
 #define OPT_SUBTITLE 0x0200
 #define OPT_FUNC2  0x0400
+#define OPT_INT64  0x0800
      union {
         void (*func_arg)(const char *); //FIXME passing error code as int return would be nicer then exit() in the func
         int *int_arg;
         char **str_arg;
         float *float_arg;
         int (*func2_arg)(const char *, const char *);
+        int64_t *int64_arg;
     } u;
     const char *help;
     const char *argname;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list