History

Add AVERROR_*_NOT_FOUND codes.

Originally committed as revision 26056 to svn://svn.ffmpeg.org/ffmpeg/trunk

Nicolas George committed 15 years ago

Commit 0bc55f51 parent eb066a44 files · +29 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +11 −0
  2. libavutil/avutil.h +1 −1
  3. libavutil/error.c +8 −0
  4. libavutil/error.h +9 −0
doc/APIchanges+11−0
@@ -13,6 +13,17 @@ libavutil: 2009-03-08 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2010-12-19 - r26056 - lavutil 50.35.0 - error.h
17+ Add "not found" error codes:
18+ AVERROR_DEMUXER_NOT_FOUND
19+ AVERROR_MUXER_NOT_FOUND
20+ AVERROR_DECODER_NOT_FOUND
21+ AVERROR_ENCODER_NOT_FOUND
22+ AVERROR_PROTOCOL_NOT_FOUND
23+ AVERROR_FILTER_NOT_FOUND
24+ AVERROR_BSF_NOT_FOUND
25+ AVERROR_STREAM_NOT_FOUND
26+
1627 2010-12-09 - r25923 - lavcore 0.16.0 - avcore.h
1728 Move AV_NOPTS_VALUE, AV_TIME_BASE, AV_TIME_BASE_Q symbols from
1829 avcodec.h to avcore.h.
libavutil/avutil.h+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
4141
4242 #define LIBAVUTIL_VERSION_MAJOR 50
43−#define LIBAVUTIL_VERSION_MINOR 34
43+#define LIBAVUTIL_VERSION_MINOR 35
4444 #define LIBAVUTIL_VERSION_MICRO 0
4545
4646 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
libavutil/error.c+8−0
@@ -29,6 +29,14 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size) · 28 unmodified lines
2929 case AVERROR_INVALIDDATA: errstr = "Invalid data found when processing input"; break;
3030 case AVERROR_NUMEXPECTED: errstr = "Number syntax expected in filename"; break;
3131 case AVERROR_PATCHWELCOME: errstr = "Not yet implemented in FFmpeg, patches welcome"; break;
32+ case AVERROR_DEMUXER_NOT_FOUND: errstr = "Demuxer not found"; break;
33+ case AVERROR_MUXER_NOT_FOUND: errstr = "Muxer not found"; break;
34+ case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"; break;
35+ case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"; break;
36+ case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found"; break;
37+ case AVERROR_FILTER_NOT_FOUND: errstr = "Filter not found"; break;
38+ case AVERROR_BSF_NOT_FOUND: errstr = "Bitstream filter not found"; break;
39+ case AVERROR_STREAM_NOT_FOUND: errstr = "Stream not found"; break;
3240 }
3341
3442 if (errstr) {
libavutil/error.h+9−0
@@ -57,6 +57,15 @@ · 56 unmodified lines
5757 #define AVERROR_NUMEXPECTED (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename
5858 #endif
5959
60+#define AVERROR_DEMUXER_NOT_FOUND (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
61+#define AVERROR_MUXER_NOT_FOUND (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found
62+#define AVERROR_DECODER_NOT_FOUND (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found
63+#define AVERROR_ENCODER_NOT_FOUND (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found
64+#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found
65+#define AVERROR_FILTER_NOT_FOUND (-MKTAG(0xF8,'F','I','L')) ///< Filter not found
66+#define AVERROR_BSF_NOT_FOUND (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
67+#define AVERROR_STREAM_NOT_FOUND (-MKTAG(0xF8,'S','T','R')) ///< Stream not found
68+
6069 /**
6170 * Put a description of the AVERROR code errnum in errbuf.
6271 * In case of failure the global variable errno is set to indicate the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t