summaryrefslogtreecommitdiff
path: root/cmdutils.c
Commit message (Collapse)AuthorAge
* cmdutils: Fix sign error in display matrix auto-rotation codeMichael Niedermayer2015-05-18
| | | | | | This makes the sample from Ticket4560 behave consistently with either branch Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cmdline: Check options array for not working flag combinationsMichael Niedermayer2015-05-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cmdutils: Add libm.h for round()Michael Niedermayer2015-05-05
| | | | | Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cmdutils: move get_rotation() up in the fileJames Almer2015-05-05
| | | | | | Fixes compilation of fftools without libavdevice Signed-off-by: James Almer <jamrial@gmail.com>
* cmdutils: Ask for a sample in case a odd rotation angle is encounteredMichael Niedermayer2015-05-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffplay&cmdutils:Factor get_rotation() code outMichael Niedermayer2015-05-03
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e'Michael Niedermayer2015-04-20
|\ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e': log: Introduce a more verbose debug level Conflicts: doc/APIchanges doc/fftools-common-opts.texi libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Introduce a more verbose debug levelVittorio Giovara2015-04-19
| | | | | | | | And deprecate av_dlog macro.
| * cmdutils: Add a stream specifier to map usable streamsLuca Barbato2015-03-20
| | | | | | | | | | It drops everything that cannot be used for re-encoding and/or streamcopy.
| * cmdutils: update copyright year to 2015.Johan Andersson2015-01-04
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | cmdutils: indent protocols listingLou Logan2015-04-19
| | | | | | | | | | | | | | For readability. Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: fix "Commmand" typoLou Logan2015-04-03
| | | | | | | | Signed-off-by: Lou Logan <lou@lrcd.com>
* | cmdutils: fix success pathJean Delvare2015-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 934f2d2f5c16df8aad9f401a9fd842b5d9a78b11, cmdutils_read_file() prints a confusing message on success: IO error: Success This is because the error message is printed on the success path as well. Add the missing condition so that it is only printed on error. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | stop embedding the build dateAndreas Cadhalpun2015-02-02
| | | | | | | | | | | | | | Theis makes the build binary reproducible. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: use av_match_name to filter devicesLukasz Marek2015-01-11
| | | | | | | | | | | | | | Device name may be coma-separated list. Use dedicated funtion to compare. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | cmdutils: use helper functions for listing sinks/sourcesLukasz Marek2015-01-11
| | | | | | | | | | | | | | | | List device callback must be able to return valid list without opening device. This callback should return input values for open function, not vice-versa. Read header funtion is very likey to fail without proper configuration provided. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | cmdutils.c: Use av_realloc_array()Michael Niedermayer2015-01-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: Use 64bit for file size/offset related variable in ↵Michael Niedermayer2015-01-06
| | | | | | | | | | | | cmdutils_read_file() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | 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
| |
* | Merge commit '38129c26c51b933d7db423f904ba0cd6a88ca1ed'Michael Niedermayer2014-12-19
|\| | | | | | | | | | | | | | | | | | | * commit '38129c26c51b933d7db423f904ba0cd6a88ca1ed': cmdutils: check file access functions return values Conflicts: cmdutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cmdutils: check file access functions return valuesVittorio Giovara2014-12-18
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 703706
* | cmdutils: use macros for device testLukasz Marek2014-12-14
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | cmdutils: Exit in case of faulty stream specifiersMichael Niedermayer2014-11-17
| | | | | | | | | | | | | | Avoids printing confusing and unrelated errors Fixes Ticket2772 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | opts: add list device sources/sinks optionsLukasz Marek2014-10-25
| | | | | | | | | | | | | | Allows to list sources/sinks of the devices that implement that functionality. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | cmdutils: Read errno before av_log() as the callback from av_log() might ↵Michael Niedermayer2014-10-25
| | | | | | | | | | | | affect errno Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '47e3e1097e09da7f973908e09df15e3bb7c5e1f4'Michael Niedermayer2014-10-17
|\| | | | | | | | | | | | | | | | | | | | | * commit '47e3e1097e09da7f973908e09df15e3bb7c5e1f4': cmdutils: Use the correct guard Conflicts: cmdutils.c See: 35daf3ca8173f80f200860e06a410ced31a8b360 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cmdutils: Use the correct guardLuca Barbato2014-10-17
| | | | | | | | | | | | | | The OptionDef arrays are terminated with a { NULL } element not NULL. CC: libav-stable@libav.org Bug-Id: CID 703769
* | Merge commit '2dd09ebf5597fd5e4a573bee9cccf21ae821f286'Michael Niedermayer2014-09-17
|\| | | | | | | | | | | | | | | | | | | * commit '2dd09ebf5597fd5e4a573bee9cccf21ae821f286': cmdutils: Print a more sensible message in show_filters() w/o libavfilter Conflicts: cmdutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cmdutils: Print a more sensible message in show_filters() w/o libavfilterDiego Biurrun2014-09-16
| | | | | | | | Also avoid an unused variable warning for compilers w/o av_unused support.
* | cmdutils: Add some whitespace when printing layoutsTobias Rapp2014-09-02
| | | | | | | | | | | | Adds some more whitespace between channel layout name and decomposition. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Drop remaining unneeded != NULLMichael Niedermayer2014-08-15
| | | | | | | | | | Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '4b1f5e5090abed6c618c8ba380cd7d28d140f867'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4b1f5e5090abed6c618c8ba380cd7d28d140f867': cosmetics: Write NULL pointer inequality checks more compactly Conflicts: libavcodec/dvdsubdec.c libavcodec/h263dec.c libavcodec/libxvid.c libavcodec/rv10.c libavcodec/utils.c libavformat/format.c libavformat/matroskadec.c libavformat/segment.c libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-15
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * cmdutils: allow matching by metadata in stream specifiersAnton Khirnov2014-08-13
| |
| * avconv: Match stream idLuca Barbato2014-03-13
| | | | | | | | Quite useful to select by pid in MPEG-TS.
| * cmdutils: update copyright year to 2014.Johan Andersson2014-01-05
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | cmdutils: ignore sws_flags if swscale is not enabledMichael Niedermayer2014-06-29
| | | | | | | | | | | | This avoids some failures during fate when swscale is disabled Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | version string: add copyright line to version stringSimon Thelen2014-06-16
| | | | | | | | | | | | | | Show the copyright when running `ffmpeg -version'. This is useful for end users trying to determine whether they are using FFmpeg or Libav. Signed-off-by: Simon Thelen <ffmpeg@c-14.de>
* | cmdutils: implement FFREPORT=level=...Michael Niedermayer2014-06-14
| | | | | | | | | | | | Fixes Ticket3057 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffmpeg: add -devices paramLukasz Marek2014-05-28
| | | | | | | | | | | | | | | | FFmpeg mix devices and file formats when -formats option is used. This commit adds a -devices param to list devices only. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: omit deprecated codec ids in help outputMichael Niedermayer2014-04-29
| | | | | | | | | | | | | | These ids should be meaningless for the end user and would only confuse Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: preserve unchanged log flags when setting AV_LOG_SKIP_REPEATEDtue46wsdgxfjrt2014-04-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: use av_mallocz_array()Michael Niedermayer2014-04-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils/filter_codec_opts: do not discard all options for CODEC_ID_NONEMichael Niedermayer2014-03-28
| | | | | | | | | | | | | | This fixes cases where the codec is detect later than the stream creation No testcase with unmodified source known Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Allow hiding the banner.Carl Eugen Hoyos2013-12-29
| | | | | | | | Fixes ticket #3246.
* | cmdutils & opencl: add -opencl_bench option to test and show available ↵Lenny Wang2013-12-09
| | | | | | | | | | | | | | | | OpenCL devices Reviewed-by: Wei Gao <highgod0401@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | build: rename version.h to libavutil/ffversion.hTimothy Gu2013-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also the libavutil/ffversion.h will be installed. Rationale: * Applications might want to know FFmpeg's version besides the individual libraries'. * Avoids file name clash between FFmpeg's ./version.h and lib*/version.h when a library source file includes both and is compiled on an out-of-tree build. Fixes #1769. Signed-off-by: Timothy Gu <timothygu99@gmail.com> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>