diff mbox series

[FFmpeg-devel,1/4] avutil/error: add a new error to signal processing got into an unrecoverable state

Message ID 20221122130732.403-1-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/4] avutil/error: add a new error to signal processing got into an unrecoverable state | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer Nov. 22, 2022, 1:07 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavutil/error.c | 1 +
 libavutil/error.h | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavutil/error.c b/libavutil/error.c
index 938a8bc000..34970a42bc 100644
--- a/libavutil/error.c
+++ b/libavutil/error.c
@@ -48,6 +48,7 @@  static const struct error_entry error_entries[] = {
     { ERROR_TAG(FILTER_NOT_FOUND),   "Filter not found"                               },
     { ERROR_TAG(INPUT_CHANGED),      "Input changed"                                  },
     { ERROR_TAG(INVALIDDATA),        "Invalid data found when processing input"       },
+    { ERROR_TAG(UNRECOVERABLE),      "Unrecoverable error"                            },
     { ERROR_TAG(MUXER_NOT_FOUND),    "Muxer not found"                                },
     { ERROR_TAG(OPTION_NOT_FOUND),   "Option not found"                               },
     { ERROR_TAG(OUTPUT_CHANGED),     "Output changed"                                 },
diff --git a/libavutil/error.h b/libavutil/error.h
index 0d3269aa6d..3e216ad714 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -57,6 +57,7 @@ 
 #define AVERROR_EOF                FFERRTAG( 'E','O','F',' ') ///< End of file
 #define AVERROR_EXIT               FFERRTAG( 'E','X','I','T') ///< Immediate exit was requested; the called function should not be restarted
 #define AVERROR_EXTERNAL           FFERRTAG( 'E','X','T',' ') ///< Generic error in an external library
+#define AVERROR_UNRECOVERABLE      FFERRTAG( 'U','N','R','E') ///< Unrecoverable error; further calls will not succeed
 #define AVERROR_FILTER_NOT_FOUND   FFERRTAG(0xF8,'F','I','L') ///< Filter not found
 #define AVERROR_INVALIDDATA        FFERRTAG( 'I','N','D','A') ///< Invalid data found when processing input
 #define AVERROR_MUXER_NOT_FOUND    FFERRTAG(0xF8,'M','U','X') ///< Muxer not found