Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-02avutil/opt: check return value of av_bprint_finalize()Limin Wang
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-06-10lavu/opt: add a more general child class iteration APIAnton Khirnov
Use opaque iteration state instead of the previous child class. This mirrors similar changes done in lavf/lavc. Deprecate the av_opt_child_class_next() API.
2020-05-22avutil/opt: add AV_OPT_FLAG_CHILD_CONSTSMarton Balint
This will be used for AVCodecContext->profile. By specifying constants in the encoders we won't have to use the common AVCodecContext options table and different encoders can use the same profile name even with different values. Signed-off-by: Marton Balint <cus@passwd.hu>
2020-05-01avutil/opt: only skip evaluation for rational optionsMarton Balint
Fixes problems when non-rational options were set using rational expressions, causing rounding errors and the option range limits not to be enforced properly. ffmpeg -f lavfi -i "sine=r=96000/2" This caused an assertion failure with assert level 2. Signed-off-by: Marton Balint <cus@passwd.hu>
2020-04-01avutil/opt: Don't use NULL for %s string in a log messageAndreas Rheinhardt
If one calls av_opt_set() with an incorrect string to set the value of an option of type AV_OPT_TYPE_VIDEO_RATE, the given string is used in a log message via %s. This also happens when the string is actually a nullpointer in which case using it for %s is forbidden. This commit changes this by erroring out early in case of a nullpointer. This also fixes a warning from GCC 9.2: "‘%s’ directive argument is null [-Wformat-overflow=]" Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-01-04libavutil/opt: fix memory leak after av_dict_parse_string failJun Zhao
In case of failure, all the successfully set entries are stored in *pm. We need to manually free the created dictionary to avoid memory leak. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-12-27avutil/opt: add full support for AV_OPT_TYPE_DICTMarton Balint
Now it is possible to set them from a string, to serialize them and to use a default value. Signed-off-by: Marton Balint <cus@passwd.hu>
2019-10-14avutil/opt: print runtime flag tooPaul B Mahol
2019-09-22avutil/opt: Fix type specifierAndreas Rheinhardt
This bug has been introduced in 9e0a071e. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-21avutil/opt: Print out numeric values of option constantsSoft Works
It's often not obvious how option constants relate to numerical values. Defaults are sometimes printed as numbers and from/to are always printed as numbers. Printing the numeric values of options constants avoids this confusion. It also allows to see which constants are equivalent. Before this patch: -segment_list_type <int> E........ set the segment list type (from -1 to 4) (default -1) flat E........ flat format csv E........ csv format ext E........ extended format ffconcat E........ ffconcat format m3u8 E........ M3U8 format hls E........ Apple HTTP Live Streaming compatible Afterwards: -segment_list_type <int> E........ set the segment list type (from -1 to 4) (default -1) flat 0 E........ flat format csv 1 E........ csv format ext 3 E........ extended format ffconcat 4 E........ ffconcat format m3u8 2 E........ M3U8 format hls 2 E........ Apple HTTP Live Streaming compatible Signed-off-by: softworkz <softworkz@hotmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-21avutil/opt: Fix printing integer option defaultsSoft Works
Integer values should not be printed using format specifier '%g' which leads to inexact display in case of higher values. Before this patch: -trans_color <int> .D.V..... color value [...] (default 1.67772e+07) Afterwards: -trans_color <int> .D.V..... color value [...] (default 16777215) Signed-off-by: softworkz <softworkz@hotmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-10-07avutil/opt: check for minimum and maximum values when setting ↵Marton Balint
AV_OPT_TYPE_DURATION fields Signed-off-by: Marton Balint <cus@passwd.hu>
2018-04-26lavu/opt: add AV_OPT_FLAG_DEPRECATEDClément Bœsch
2018-03-16lavu/opt: add bit stream filter option dump support.Jun Zhao
enable dump bit stream filter and update opt fate test ref. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-10-09lavu/opt: Use "&&" instead of "*" in boolean expression.Carl Eugen Hoyos
Fixes the following warning: libavutil/opt.c:101:47: warning: '*' in boolean context, suggest '&&' instead
2017-03-30Merge commit '67351924fa91dea4339109100a4c0689f006581f'Clément Bœsch
* commit '67351924fa91dea4339109100a4c0689f006581f': Drop unreachable break and return statements Merged-by: Clément Bœsch <cboesch@gopro.com>
2016-12-13opt: reject denominator zero as out of rangeAndreas Cadhalpun
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-11-23avutil/opt: Add AV_OPT_TYPE_UINT64Michael Niedermayer
Requested-by: wm4 ([FFmpeg-devel] [PATCH] avutil/opt: Support max > INT64_MAX in write_number() with AV_OPT_TYPE_INT64) Requested-by: ronald ([FFmpeg-devel] [PATCH] avutil/opt: Support max > INT64_MAX in write_number() with AV_OPT_TYPE_INT64) Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-21avutil/opt: Fix setting int64 to its maximumMichael Niedermayer
Found-by: Andreas Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-03Drop unreachable break and return statementsDiego Biurrun
2016-06-09avutil/opt: Fix max/min checking in av_opt_set() for AV_OPT_TYPE_VIDEO_RATEMichael Niedermayer
Fixes Ticket5618 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-11Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis
* commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-09libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOptionPrzemysław Sobala
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-06avutil/parsing: add '\r' as whitespaceMuhammad Faiz
for compatibility with platforms that treat it as newline Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2016-04-21Merge commit '3b08d9d932eef09403074d5af31e10d8011e840b'Derek Buitenhuis
* commit '3b08d9d932eef09403074d5af31e10d8011e840b': testprogs: K&R formatting cosmetics Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-19Merge commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0'Derek Buitenhuis
* commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0': opt: Add av_opt_copy() Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-07build: Split test programs off into separate filesDiego Biurrun
This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
2016-03-24testprogs: K&R formatting cosmeticsDiego Biurrun
2016-03-24opt: Add av_opt_copy()Michael Niedermayer
This includes documentation and other modifications by Lukasz Marek and Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
2016-03-24opt: Add const to av_opt_nextLukasz Marek
Also add const to pointers in static functions within opt.c where possible/necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
2016-03-23opt-test: Merge struct declaration and initializationDiego Biurrun
2016-03-23opt-test: Move some variable declarations to avoid block bracesDiego Biurrun
2016-01-26avutil/opt: check for and handle errors in av_opt_set_dict2()Michael Niedermayer
Previously errors could result in random entries to be lost. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-07lavu/opt: enhance printing durations.Nicolas George
Trim unneeded leading components and trailing zeros. Move the formating code in a separate function. Use the function also to format the default value, it was currently printed as plain integer, inconsistent to the way it is parsed.
2015-10-26avutil/opt: print more meaningful default flags valuesClément Bœsch
Example: % ./ffmpeg -h encoder=gif [...] GIF encoder AVOptions: -gifflags <flags> E..V.... set GIF flags (default offsetting+transdiff) offsetting E..V.... enable picture offsetting transdiff E..V.... enable transparency detection between frames
2015-10-19avutil/opt: display a better default value for int/int64 optionsClément Bœsch
Example: % ./ffmpeg -h encoder=aac -aac_coder <int> E...A... Coding algorithm (from -1 to 3) (default twoloop) faac E...A... FAAC-inspired method anmr E...A... ANMR method twoloop E...A... Two loop searching method fast E...A... Constant quantizer [...]
2015-10-09lavu/opt: add flag to return NULL when applicable in av_opt_getRodger Combs
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-08avutil/opt: refactor pixel/sample fmt common caseClément Bœsch
2015-09-08avutil/opt: add AV_OPT_TYPE_BOOLClément Bœsch
2015-09-05lavu: Drop FF_API_GET_CHANNEL_LAYOUT_COMPAT cruftHendrik Leppkes
FATE refs changed to accomodate for the new default behavior of the function. Numbers are now interpreted as a channel layout, instead of a number of channels.
2015-09-05lavu: Drop old deprecated AVOption APIHendrik Leppkes
Deprecated in 2011/10
2015-09-05Remove FF_CONST_AVUTIL55 cruftHendrik Leppkes
2015-08-18Undeprecate av_opt_set_defaults2().Ronald S. Bultje
2015-05-03avutil/opt: Avoid division by 0Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-05avutil/opt: Do not print inf in selftestMichael Niedermayer
This fixes fate failures on windows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-01avutil/opt: also test av_opt_show2()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-01avutil/opt: Remove odd trailing whitespace bytes from flags help descriptionMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-01avutil/opt: Also test/compare the av_log output i the selftestMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-07avutil/opt: Fix type used to access AV_OPT_TYPE_SAMPLE_FMTMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-07avutil/opt: Fix types used to access AV_OPT_TYPE_PIXEL_FMTMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>