summaryrefslogtreecommitdiff
path: root/libavutil/error.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-24 23:27:14 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-25 11:49:41 -0500
commitc9bca801324f03746757aef8549ebd26599adec2 (patch)
tree77256e5edbfeec8061a61395cd8e3a29cd69bce0 /libavutil/error.h
parenta8bdf2405c6027f45a899eaaa6ba74e97c1c2701 (diff)
avutil: add AVERROR_UNKNOWN
Useful to return instead of -1 when the cause of the error is unknown, typically from an external library.
Diffstat (limited to 'libavutil/error.h')
-rw-r--r--libavutil/error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/error.h b/libavutil/error.h
index 2db65cb83f..11bcc5c4c4 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -58,6 +58,7 @@
#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found
#define AVERROR_STREAM_NOT_FOUND (-MKTAG(0xF8,'S','T','R')) ///< Stream not found
#define AVERROR_BUG (-MKTAG( 'B','U','G',' ')) ///< Bug detected, please report the issue
+#define AVERROR_UNKNOWN (-MKTAG( 'U','N','K','N')) ///< Unknown error, typically from an external library
/**
* Put a description of the AVERROR code errnum in errbuf.