#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/dict.h"
+#include "libavutil/libm.h"
#include "libavutil/timecode.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
long long int index;
if (uv.unit == unit_byte_str && use_byte_value_binary_prefix) {
- index = (long long int) (log(vald)/log(2)) / 10;
+ index = (long long int) (log2(vald)) / 10;
index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) - 1);
vald /= pow(2, index * 10);
prefix_string = binary_unit_prefixes[index];
av_opt_set_defaults(def);
if (args &&
- (err = (av_set_options_string(def, args, "=", ":"))) < 0) {
- av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
+ (err = (av_set_options_string(def, args, "=", ":"))) < 0)
return err;
- }
return 0;
}
av_opt_set_defaults(compact);
if (args &&
- (err = (av_set_options_string(compact, args, "=", ":"))) < 0) {
- av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
+ (err = (av_set_options_string(compact, args, "=", ":"))) < 0)
return err;
- }
if (strlen(compact->item_sep_str) != 1) {
av_log(wctx, AV_LOG_ERROR, "Item separator '%s' specified, but must contain a single character\n",
compact->item_sep_str);
av_opt_set_defaults(flat);
if (args &&
- (err = (av_set_options_string(flat, args, "=", ":"))) < 0) {
- av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
+ (err = (av_set_options_string(flat, args, "=", ":"))) < 0)
return err;
- }
if (strlen(flat->sep_str) != 1) {
av_log(wctx, AV_LOG_ERROR, "Item separator '%s' specified, but must contain a single character\n",
flat->sep_str);
ini->class = &ini_class;
av_opt_set_defaults(ini);
- if (args && (err = av_set_options_string(ini, args, "=", ":")) < 0) {
- av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
+ if (args && (err = av_set_options_string(ini, args, "=", ":")) < 0)
return err;
- }
return 0;
}
av_opt_set_defaults(json);
if (args &&
- (err = (av_set_options_string(json, args, "=", ":"))) < 0) {
- av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
+ (err = (av_set_options_string(json, args, "=", ":"))) < 0)
return err;
- }
json->item_sep = json->compact ? ", " : ",\n";
json->item_start_end = json->compact ? " " : "\n";
av_opt_set_defaults(xml);
if (args &&
- (err = (av_set_options_string(xml, args, "=", ":"))) < 0) {
- av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
+ (err = (av_set_options_string(xml, args, "=", ":"))) < 0)
return err;
- }
if (xml->xsd_strict) {
xml->fully_qualified = 1;