summaryrefslogtreecommitdiff
path: root/libavutil/error.h
Commit message (Collapse)AuthorAgeFilesLines
* avutil/error: Include macros.h for MKTAGAndreas Rheinhardt2021-07-291-0/+2
| | | | | | | | | Up until now, including error.h alone does not make the AVERROR_* defines usable, because they just expand to something involving MKTAG, but without the header providing MKTAG. So include macros.h, the header providing MKTAG. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/error: Introduce new error codes for 4XX and 5XX replies from remote ↵Andrey Utkin2014-10-191-0/+7
| | | | | | servers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'fb1ddcdc8f51b9d261ae8e9c26b91e81f7b6bf45'Michael Niedermayer2014-08-101-0/+2
|\ | | | | | | | | | | | | | | | | | | | | * commit 'fb1ddcdc8f51b9d261ae8e9c26b91e81f7b6bf45': avresample: Introduce AVFrame-based API Conflicts: libavresample/utils.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avresample: Introduce AVFrame-based APILuca Barbato2014-08-101-0/+2
| |
| * error.h: Do not circularly depend on avutil.hDiego Biurrun2013-12-251-1/+0
| |
* | Merge commit 'c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4'Michael Niedermayer2012-10-221-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
| * averror: make error values proper negative valuesJanne Grunau2012-10-111-15/+15
| | | | | | | | Fixes stupid mistake in 25227c3a78fefd74bc6ea34032cd49ec8c8d9d85.
| * averror: explicitly define AVERROR_* valuesJanne Grunau2012-10-101-15/+15
| |
| * 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-0/+25
| | | | | | | | | | These functions are modeled after the corresponding utilities in libavutil/timestamp.h.
* | lavu/error: fix make checkheaders.Clément Bœsch2012-05-181-1/+1
| | | | | | | | | | | | The errors need to be defined before including functions depending on them. See av_size_mult() for instance. stddef.h is included for the prototype of av_sterror (use of size_t).
* | error: ensure error codes are signed negative ints.Nicolas George2012-04-151-16/+18
| | | | | | | | | | | | | | Based on a patch by Robert Nagy <ronag89@gmail.com>. It makes a difference when the error code is immediately cast into a larger integer, such as an int64_t.
* | 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-1/+7
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-231-0/+11
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (22 commits) aacdec: Fix PS in ADTS. avconv: Consistently use PIX_FMT_NONE. dsputil: use cpuflags in x86 emu_edge_core dsputil: use movups instead of movdqu in ff_emu_edge_core_sse() wma: initialize prev_block_len_bits, next_block_len_bits, and block_len_bits. mov: Remove some redundant and obsolete comments. Add libavutil/mathematics.h #includes for INFINITY doxy: structure libavformat groups doxy: introduce an empty structure in libavcodec doxy: provide a start page and document libavutil doxy: cleanup pixfmt.h regtest: split video encode/decode tests into individual targets ARM: add explicit .arch and .fpu directives to asm.S pthread: do not touch has_b_frames avconv: cleanup the transcoding loop in output_packet(). avconv: split subtitle transcoding out of output_packet(). avconv: split video transcoding out of output_packet(). avconv: split audio transcoding out of output_packet(). avconv: reindent. avconv: move streamcopy-only code out of decoding loop. ... Conflicts: avconv.c libavcodec/aaccoder.c libavcodec/pthread.c libavcodec/version.h libavutil/audioconvert.h libavutil/avutil.h libavutil/mem.h tests/ref/vsynth1/dv tests/ref/vsynth1/mpeg2thread tests/ref/vsynth2/dv tests/ref/vsynth2/mpeg2thread Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxy: provide a start page and document libavutilLuca Barbato2011-11-221-0/+11
| | | | | | | | | | | | Introduce a basic layout, the subpages are currently left empty. Split libavutil in multiple groups as example of the structure
* | error: remove symbols which were deprecated before the big bumpStefano Sabatini2011-04-221-9/+0
| | | | | | | | | | | | | | The removal was not applied when merging the Libav patches, because there was still code referencing the symbols. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-221-11/+9
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/+8
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * error: change AVERROR_EOF valueAnton Khirnov2011-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | The current value is masking the POSIX error code EPIPE, which has a different semantics. This breaks API. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * 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>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-201-6/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (37 commits) In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function. lavc: remove reference to opt.h from Makefile. prefer avio_check() over url_exist() avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols lavu: remove misc disabled cruft lavu: remove FF_API_OLD_IMAGE_NAMES cruft NOT PULLED lavu: remove FF_API_OLD_EVAL_NAMES cruft lavc: remove misc disabled cruft. lavc: remove the FF_API_INOFFICIAL cruft. lavc: remove the FF_API_SET_STRING_OLD cruft. lavc: remove the FF_API_USE_LPC cruft. lavc: remove the FF_API_SUBTITLE_OLD cruft. lavc: remove the FF_API_VIDEO_OLD cruft. lavc: remove the FF_API_AUDIO_OLD cruft. lavc: remove the FF_API_OPT_SHOW cruft. lavc: remove the FF_API_MM_FLAGS cruft. lavf: remove misc disabled cruft. lavf: remove FF_API_INDEX_BUILT cruft lavf: remove FF_API_URL_CLASS cruft. lavf: remove FF_API_SYMVER cruft ... Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: remove misc disabled cruftAnton Khirnov2011-04-191-13/+0
| |
* | 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/+2
| | | | | | | | 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/+9
| | | | Originally committed as revision 26056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve av_strerror() documentationMåns Rullgård2010-06-301-0/+2
| | | | Originally committed as revision 23910 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-301-1/+1
| | | | Originally committed as revision 23904 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/+2
| | | | | | | | | | 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-1/+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/+1
| | | | | | | | | | 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
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_strerror().Stefano Sabatini2010-03-251-0/+10
| | | | Originally committed as revision 22684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefer '///< ...' doxygen inline syntax over '/**< ... */'.Stefano Sabatini2010-03-251-14/+14
| | | | Originally committed as revision 22683 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use consistent punctuation rules for the error message descriptions.Stefano Sabatini2010-03-251-9/+9
| | | | Originally committed as revision 22682 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop AVERROR_NOFMT at the next libavutil major bump.Stefano Sabatini2010-03-211-1/+1
| | | | Originally committed as revision 22626 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the definition of AVERROR_INVALIDDATA at the next libavutilStefano Sabatini2010-03-191-1/+2
| | | | | | | major bump, using an FFmpeg specific error code rather than EINVAL, which has a quite different semantics. Originally committed as revision 22601 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extend description for AVERROR_INVALIDDATA.Stefano Sabatini2010-03-191-1/+1
| | | | Originally committed as revision 22600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* error.h: test EDOM instead of EINVALMåns Rullgård2010-03-141-1/+1
| | | | | | C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE. Originally committed as revision 22530 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing includes to libavutil/error.hMåns Rullgård2010-03-141-0/+3
| | | | Originally committed as revision 22529 to svn://svn.ffmpeg.org/ffmpeg/trunk