It should be used to mark codepath that can be reached only through
programming error.
| ... | ... |
@@ -38,6 +38,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size) |
| 38 | 38 |
case AVERROR_PATCHWELCOME: errstr = "Not yet implemented in Libav, patches welcome"; break; |
| 39 | 39 |
case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found" ; break; |
| 40 | 40 |
case AVERROR_STREAM_NOT_FOUND: errstr = "Stream not found" ; break; |
| 41 |
+ case AVERROR_BUG: errstr = "Bug detected, please report the issue" ; break; |
|
| 41 | 42 |
} |
| 42 | 43 |
|
| 43 | 44 |
if (errstr) {
|
| ... | ... |
@@ -57,6 +57,7 @@ |
| 57 | 57 |
#define AVERROR_PATCHWELCOME (-MKTAG( 'P','A','W','E')) ///< Not yet implemented in Libav, patches welcome |
| 58 | 58 |
#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found |
| 59 | 59 |
#define AVERROR_STREAM_NOT_FOUND (-MKTAG(0xF8,'S','T','R')) ///< Stream not found |
| 60 |
+#define AVERROR_BUG (-MKTAG( 'B','U','G',' ')) ///< Bug detected, please report the issue |
|
| 60 | 61 |
|
| 61 | 62 |
/** |
| 62 | 63 |
* Put a description of the AVERROR code errnum in errbuf. |