summaryrefslogtreecommitdiff
path: root/libavutil/opt.c
Commit message (Collapse)AuthorAge
* lavu/opt: add bit stream filter option dump support.Jun Zhao2018-03-16
| | | | | | | 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>
* lavu/opt: Use "&&" instead of "*" in boolean expression.Carl Eugen Hoyos2017-10-08
| | | | | Fixes the following warning: libavutil/opt.c:101:47: warning: '*' in boolean context, suggest '&&' instead
* Merge commit '67351924fa91dea4339109100a4c0689f006581f'Clément Bœsch2017-03-30
|\ | | | | | | | | | | | | * commit '67351924fa91dea4339109100a4c0689f006581f': Drop unreachable break and return statements Merged-by: Clément Bœsch <cboesch@gopro.com>
| * Drop unreachable break and return statementsDiego Biurrun2016-11-03
| |
* | opt: reject denominator zero as out of rangeAndreas Cadhalpun2016-12-13
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | avutil/opt: Add AV_OPT_TYPE_UINT64Michael Niedermayer2016-11-23
| | | | | | | | | | | | | | 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>
* | avutil/opt: Fix setting int64 to its maximumMichael Niedermayer2016-11-20
| | | | | | | | | | | | Found-by: Andreas Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/opt: Fix max/min checking in av_opt_set() for AV_OPT_TYPE_VIDEO_RATEMichael Niedermayer2016-06-09
| | | | | | | | | | | | Fixes Ticket5618 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-11
|\| | | | | | | | | | | | | | | * 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>
| * build: Split test programs off into separate filesDiego Biurrun2016-04-07
| | | | | | | | | | This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
* | libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOptionPrzemysław Sobala2016-05-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/parsing: add '\r' as whitespaceMuhammad Faiz2016-05-06
| | | | | | | | | | | | | | for compatibility with platforms that treat it as newline Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | Merge commit '3b08d9d932eef09403074d5af31e10d8011e840b'Derek Buitenhuis2016-04-21
|\| | | | | | | | | | | | | * commit '3b08d9d932eef09403074d5af31e10d8011e840b': testprogs: K&R formatting cosmetics Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * testprogs: K&R formatting cosmeticsDiego Biurrun2016-03-24
| |
* | Merge commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0'Derek Buitenhuis2016-04-19
|\| | | | | | | | | | | | | * commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0': opt: Add av_opt_copy() Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * opt: Add av_opt_copy()Michael Niedermayer2016-03-24
| | | | | | | | | | | | | | This includes documentation and other modifications by Lukasz Marek and Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
| * opt: Add const to av_opt_nextLukasz Marek2016-03-24
| | | | | | | | | | | | | | Also add const to pointers in static functions within opt.c where possible/necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
| * opt-test: Merge struct declaration and initializationDiego Biurrun2016-03-23
| |
| * opt-test: Move some variable declarations to avoid block bracesDiego Biurrun2016-03-23
| |
* | avutil/opt: check for and handle errors in av_opt_set_dict2()Michael Niedermayer2016-01-26
| | | | | | | | | | | | Previously errors could result in random entries to be lost. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavu/opt: enhance printing durations.Nicolas George2015-11-07
| | | | | | | | | | | | | | 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.
* | avutil/opt: print more meaningful default flags valuesClément Bœsch2015-10-25
| | | | | | | | | | | | | | | | | | | | 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
* | avutil/opt: display a better default value for int/int64 optionsClément Bœsch2015-10-19
| | | | | | | | | | | | | | | | | | | | | | | | 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 [...]
* | lavu/opt: add flag to return NULL when applicable in av_opt_getRodger Combs2015-10-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/opt: refactor pixel/sample fmt common caseClément Bœsch2015-09-08
| |
* | avutil/opt: add AV_OPT_TYPE_BOOLClément Bœsch2015-09-08
| |
* | lavu: Drop FF_API_GET_CHANNEL_LAYOUT_COMPAT cruftHendrik Leppkes2015-09-05
| | | | | | | | | | 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.
* | lavu: Drop old deprecated AVOption APIHendrik Leppkes2015-09-05
| | | | | | | | Deprecated in 2011/10
* | Remove FF_CONST_AVUTIL55 cruftHendrik Leppkes2015-09-05
| |
* | Undeprecate av_opt_set_defaults2().Ronald S. Bultje2015-08-18
| |
* | avutil/opt: Avoid division by 0Michael Niedermayer2015-05-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Do not print inf in selftestMichael Niedermayer2015-03-05
| | | | | | | | | | | | This fixes fate failures on windows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: also test av_opt_show2()Michael Niedermayer2015-03-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Remove odd trailing whitespace bytes from flags help descriptionMichael Niedermayer2015-03-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Also test/compare the av_log output i the selftestMichael Niedermayer2015-03-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Fix type used to access AV_OPT_TYPE_SAMPLE_FMTMichael Niedermayer2015-02-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Fix types used to access AV_OPT_TYPE_PIXEL_FMTMichael Niedermayer2015-02-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '07a0c0f0005072d115ace61e60f46be68582cc3a'Michael Niedermayer2015-01-06
|\| | | | | | | | | | | | | * commit '07a0c0f0005072d115ace61e60f46be68582cc3a': opt: check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * opt: check memory allocationVittorio Giovara2015-01-05
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1257771
* | Merge commit 'b1306823d0b3ae998c8e10ad832004eb13bdd93e'Michael Niedermayer2014-12-19
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'b1306823d0b3ae998c8e10ad832004eb13bdd93e': check memory errors from av_strdup() Conflicts: avprobe.c libavformat/matroskaenc.c libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * check memory errors from av_strdup()Vittorio Giovara2014-12-18
| |
* | avutil/opt: Fix AV_OPT_TYPE_BINARY case in av_opt_is_set_to_default()Michael Niedermayer2014-12-08
| | | | | | | | | | | | | | Fixes CID1257010 Reviewed-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Check av_parse_video_rate()s return valueMichael Niedermayer2014-12-07
| | | | | | | | | | | | Fixes CID1257008 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Check av_parse_color() return valueMichael Niedermayer2014-12-07
| | | | | | | | | | | | Fixes: CID1257007 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: add escaping to av_opt_serializeLukasz Marek2014-11-29
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: add consts where possibleLukasz Marek2014-11-27
| |
* | lavu/opt: handle NULL obj in av_opt_nextLukasz Marek2014-11-25
| | | | | | | | | | | | It indirectly also fixes av_opt_free for NULL objs. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: introduce av_opt_serialize()Lukasz Marek2014-11-16
| | | | | | | | | | | | | | Function allows to create string containing object's serialized options. Such string may be passed back to av_set_options_string() in order to restore options. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: introduce av_opt_is_set_to_default()Lukasz Marek2014-11-16
| | | | | | | | | | | | New function allows to check if option is set to its default value Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: fix av_opt_get functionLukasz Marek2014-11-12
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>