[SCM] libav/experimental: Export and document in cmdutils.h the function parse_number_or_die(). Patch by Stefano Sabatini: stefano sabatini-lala poste it

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:15:36 UTC 2013


The following commit has been merged in the experimental branch:
commit 60b5a745a91484ecc2697d9615d1314bdbfdbf51
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Mon Feb 25 14:05:52 2008 +0000

    Export and document in cmdutils.h the function parse_number_or_die().
    Patch by Stefano Sabatini: stefano sabatini-lala poste it
    
    Originally committed as revision 12210 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/cmdutils.h b/cmdutils.h
index 102e040..9d0f32a 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -24,6 +24,21 @@
 
 #include <inttypes.h>
 
+/**
+ * parses a string and returns its corresponding value as a double or
+ * exits from the application if the string cannot be correctly parsed
+ * or the corresponding value is invalid
+ *
+ * @param context the context of the value to be set (e.g. the
+ * corresponding commandline option name)
+ * @param numstr the string to be parsed
+ * @param type the type (OPT_INT64 or OPT_FLOAT) as which the
+ * string should be parsed
+ * @param min the minimum valid value accepted
+ * @param max the maximum valid value accepted
+ */
+double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max);
+
 typedef struct {
     const char *name;
     int flags;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list