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
13 13
14API changes, most recent first:14API changes, most recent first:
15 15
162010-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
162010-12-09 - r25923 - lavcore 0.16.0 - avcore.h272010-12-09 - r25923 - lavcore 0.16.0 - avcore.h
17 Move AV_NOPTS_VALUE, AV_TIME_BASE, AV_TIME_BASE_Q symbols from28 Move AV_NOPTS_VALUE, AV_TIME_BASE, AV_TIME_BASE_Q symbols from
18 avcodec.h to avcore.h.29 avcodec.h to avcore.h.
libavutil/avutil.h+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
40#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)40#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
41 41
42#define LIBAVUTIL_VERSION_MAJOR 5042#define LIBAVUTIL_VERSION_MAJOR 50
43#define LIBAVUTIL_VERSION_MINOR 3443#define LIBAVUTIL_VERSION_MINOR 35
44#define LIBAVUTIL_VERSION_MICRO 044#define LIBAVUTIL_VERSION_MICRO 0
45 45
46#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \46#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
29 case AVERROR_INVALIDDATA: errstr = "Invalid data found when processing input"; break;29 case AVERROR_INVALIDDATA: errstr = "Invalid data found when processing input"; break;
30 case AVERROR_NUMEXPECTED: errstr = "Number syntax expected in filename"; break;30 case AVERROR_NUMEXPECTED: errstr = "Number syntax expected in filename"; break;
31 case AVERROR_PATCHWELCOME: errstr = "Not yet implemented in FFmpeg, patches welcome"; break;31 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;
32 }40 }
33 41
34 if (errstr) {42 if (errstr) {
libavutil/error.h+9−0
@@ -57,6 +57,15 @@ · 56 unmodified lines
57#define AVERROR_NUMEXPECTED (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename57#define AVERROR_NUMEXPECTED (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename
58#endif58#endif
59 59
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
60/**69/**
61 * Put a description of the AVERROR code errnum in errbuf.70 * Put a description of the AVERROR code errnum in errbuf.
62 * In case of failure the global variable errno is set to indicate the71 * 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