summaryrefslogtreecommitdiffstats
path: root/libavutil/error.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-111-22/+0
|\ | | | | | | | | | | | | | | * 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>
* | lavu/error: add missing error messages for errors supported on all platformsMarton Balint2015-12-181-0/+37
| | | | | | | | | | | | | | | | We need these if we have no strerror_r. Descriptions are taken from doc/errno.txt except for ENOMEM. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avutil/error: list most common error code in error_entries when strerror_r() ↵Michael Niedermayer2015-02-101-0/+4
| | | | | | | | | | | | | | | | is unavailable Fixes Ticket4267 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/error: Introduce new error codes for 4XX and 5XX replies from remote ↵Andrey Utkin2014-10-191-0/+6
| | | | | | | | | | | | servers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/error: Add AVERROR_INPUT_CHANGED & AVERROR_OUTPUT_CHANGED to ↵Michael Niedermayer2014-10-101-0/+4
| | | | | | | | | | | | error_entries[] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/error: fix build with musl toolchainJörg Krause2014-09-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | Add the feature test macro which is required for building with the musl toolchain. The feature test macro _XOPEN_SOURCE = 600 provides the XSI-compliant version of strerror_r(). Signed-off-by: Jörg Krause <jkrause@posteo.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4'Michael Niedermayer2012-10-221-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4': rtpdec: Don't pass a non-AVClass pointer as log context rtsp: Update a comment to the current filename scheme avcodec: handle AVERROR_EXPERIMENTAL avutil: Add AVERROR_EXPERIMENTAL avcodec: prefer decoders without CODEC_CAP_EXPERIMENTAL Conflicts: doc/APIchanges ffmpeg.c libavcodec/utils.c libavformat/rtpdec.c libavutil/error.c libavutil/error.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: Add AVERROR_EXPERIMENTALNathan Caldwell2012-10-211-0/+1
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | lavu/error: make error_entries static const.Clément Bœsch2012-09-161-3/+3
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-161-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Fix even more missing includes after the common.h removal build: Factor out rangecoder dependencies to CONFIG_RANGECODER build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE x86: avcodec: Consistently name all init files Add more missing includes after removing the implicit common.h Add some more missing includes after removing the implicit common.h Don't include common.h from avutil.h rtmp: Automatically compute the hash for SWFVerification Conflicts: configure doc/APIchanges doc/examples/decoding_encoding.c libavcodec/Makefile libavcodec/assdec.c libavcodec/audio_frame_queue.c libavcodec/avpacket.c libavcodec/dv_profile.c libavcodec/dwt.c libavcodec/libtheoraenc.c libavcodec/rawdec.c libavcodec/rv40dsp.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/v210dec.h libavcodec/vc1dsp.c libavcodec/x86/Makefile libavfilter/asrc_anullsrc.c libavfilter/avfilter.c libavfilter/buffer.c libavfilter/formats.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_select.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/version.h libavutil/audioconvert.c libavutil/error.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+1
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | error: define AVERROR_EXTERNAL.Nicolas George2012-07-041-0/+1
| | | | | | | | | | | | This code is intended for errors in external libraries when no corresponding error code can be found. AVERROR_UNKNOWN is too vague for that and looks like AVERROR_BUG.
* | error: define AVERROR_BUFFER_TOO_SMALL.Nicolas George2012-07-041-0/+1
| | | | | | | | | | Some API require a buffer and return a specific error if it is too small. This error code helps to map codes.
* | lavu/error: add av_make_error_string() and av_err2str() convenience utilitiesStefano Sabatini2012-06-111-5/+2
| | | | | | | | | | These functions are modeled after the corresponding utilities in libavutil/timestamp.h.
* | lavu/error: fix sign error in av_sterror() error codeStefano Sabatini2012-06-111-1/+1
| | | | | | | | | | | | | | The value returned by strerror_r may be positive depending on the system, so it is necessary to use AVERROR() in order to get a negative number. This way the successive negative check will not fail, and the function will print a meaningful error message on the buffer.
* | lavu/error: use a table to store error codes and strings, add testStefano Sabatini2012-06-111-25/+61
| | | | | | | | | | The table is mostly useful to enumerate the available AVERROR* in the test output.
* | error: Try to make av_strerror() closer to binary identical across platforms.Michael Niedermayer2012-05-091-0/+2
| | | | | | | | | | | | This should fix the parseutils fate test. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-261-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (34 commits) mlp_parser: fix the channel mask value used for the top surround channel vorbisenc: check all allocations for failure roqaudioenc: return AVERROR codes instead of -1 roqaudioenc: set correct bit rate roqaudioenc: use AVCodecContext.frame_size correctly. roqaudioenc: remove unneeded sample_fmt check ra144enc: use int16_t* for input samples rather than void* ra144enc: set AVCodecContext.coded_frame ra144enc: remove unneeded sample_fmt check nellymoserenc: set AVCodecContext.coded_frame nellymoserenc: improve error checking in encode_init() nellymoserenc: return AVERROR codes instead of -1 libvorbis: improve error checking in oggvorbis_encode_init() mpegaudioenc: return AVERROR codes instead of -1 libfaac: improve error checking and handling in Faac_encode_init() avutil: add AVERROR_UNKNOWN check for coded_frame allocation failure in several audio encoders audio encoders: do not set coded_frame->key_frame. g722enc: check for trellis data allocation error libspeexenc: export encoder delay through AVCodecContext.delay ... Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/fraps.c libavcodec/kgv1dec.c libavcodec/libfaac.c libavcodec/libgsm.c libavcodec/libvorbis.c libavcodec/mlp_parser.c libavcodec/roqaudioenc.c libavcodec/vorbisenc.c libavutil/avutil.h libavutil/error.c libavutil/error.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: add AVERROR_UNKNOWNJustin Ruggles2012-02-251-0/+1
| | | | | | | | | | Useful to return instead of -1 when the cause of the error is unknown, typically from an external library.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-201-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: h264: clear trailing bits in partially parsed NAL units vc1: Handle WVC1 interlaced stream xl: Fix overreads mpegts: rename payload_index to payload_size segment: introduce segmented chain muxer lavu: add AVERROR_BUG error value avplay: clear pkt_temp when pkt is freed. qcelpdec: K&R formatting cosmetics qcelpdec: cosmetics: drop some pointless parentheses x86: conditionally compile dnxhd encoder optimizations Revert "h264: skip start code search if the size of the nal unit is known" swscale: fix formatting and indentation of unscaled conversion routines. h264: skip start code search if the size of the nal unit is known cljr: fix buf_size sanity check cljr: Check if width and height are positive integers Conflicts: libavcodec/cljr.c libavcodec/vc1dec.c libavformat/Makefile libavformat/mpegtsenc.c libavformat/segment.c libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: add AVERROR_BUG error valueLuca Barbato2011-12-191-0/+1
| | | | | | | | | | It should be used to mark codepath that can be reached only through programming error.
* | lavu/error: define AVERROR_BUG.Nicolas George2011-12-031-0/+1
| | | | | | | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | error.c: fix compile flagsMichael Niedermayer2011-05-301-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-221-12/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition. Introduce slice threads flag. FATE: allow forcing thread-type when doing threaded fate runs. Use av_log_ask_for_sample() where appropriate. error: sort, pack, and align error code and string definitions The stabilization period after version bumps should be one month, not one week. applehttp: Expose the stream bitrate via metadata doc: Add some initial docs on the applehttp demuxer Provide a fallback version of the libm function trunc libavdevice: Define _XOPEN_SOURCE for usleep lavc: provide deprecated avcodec_thread_init until next major version lavc: provide the opt.h header until the next bump error: change AVERROR_EOF value error: remove AVERROR_NUMEXPECTED error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c Conflicts: libavcodec/h264.c libavutil/error.c libavutil/error.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * error: sort, pack, and align error code and string definitionsStefano Sabatini2011-04-211-12/+12
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * error: remove AVERROR_NUMEXPECTEDStefano Sabatini2011-04-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | AVERROR_NUMEXPECTED is used only in the image muxer and demuxer, and has a too much specific meaning, which is better explained through a log message. Thus it can be replaced by AVERROR(EINVAL). This breaks API. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.cStefano Sabatini2011-04-211-0/+1
| | | | | | | | | | | | | | | | The new error code is better than AVERROR(ENOENT), which has a completely different semantics ("No such file or directory"). Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | 10l, commit that should have been stashed into the merge.Michael Niedermayer2011-04-171-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-171-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ac3dec: fix processing of delta bit allocation information. vc1: fix fate-vc1 after previous commit. wmv3dec: fix playback of complex WMV3 files using simple_idct. make av_dup_packet() more cautious on allocation failures make containers pass palette change in AVPacket introduce side information for AVPacket Politic commits that have not been pulled: Update regtest checksums after revision 6001dad. Replace more FFmpeg references by Libav. Replace references to ffmpeg-devel with libav-devel; fix roundup URL. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace more FFmpeg references by Libav.Diego Biurrun2011-04-171-1/+1
| |
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add AVERROR_EXIT.Nicolas George2011-03-151-0/+1
| | | | | | | | This is different from AVERROR(EINTR) because calls that fail with EINTR should usually be restarted. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add AVERROR_*_NOT_FOUND codes.Nicolas George2010-12-191-0/+8
| | | | Originally committed as revision 26056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_strerror() return -1 even in the case when av_strerror_r() isStefano Sabatini2010-05-051-1/+3
| | | | | | | | | | not defined. This allows applications to check if av_strerror() cannot provide a meaningful representation for the provided error code, without having to actually check the filled string. Originally committed as revision 23031 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_strerror() print an error message mentioning the error codeStefano Sabatini2010-05-031-2/+2
| | | | | | | | | number if strerror_r() did not succeed for whatever reason. This avoids the need for the application to fill the string in case strerror_r() fails, for example because the error code is not known. Originally committed as revision 23015 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop AVERROR_NOTSUPP at the next major bump, use AVERROR(ENOSYS)Stefano Sabatini2010-04-271-1/+0
| | | | | | | | | | instead which is semantically equivalent. See the thread: Subject: [FFmpeg-devel] [RFC] The meaning of AVERROR_NOTSUPP Date: Sat, 27 Mar 2010 00:51:13 +0100 Originally committed as revision 22981 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_strerror().Stefano Sabatini2010-03-251-0/+46
Originally committed as revision 22684 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud