[FFmpeg-cvslog] error: Try to make av_strerror() closer to binary identical across platforms.

Michael Niedermayer git at videolan.org
Wed May 9 11:31:06 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May  9 11:26:11 2012 +0200| [2c83265290f679c07b30faa6a3804500931f1833] | committer: Michael Niedermayer

error: Try to make av_strerror() closer to binary identical across platforms.

This should fix the parseutils fate test.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c83265290f679c07b30faa6a3804500931f1833
---

 libavutil/error.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavutil/error.c b/libavutil/error.c
index 56841d3..8f725d7 100644
--- a/libavutil/error.c
+++ b/libavutil/error.c
@@ -42,6 +42,8 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
     case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found"                           ; break;
     case AVERROR_STREAM_NOT_FOUND:  errstr = "Stream not found"                             ; break;
     case AVERROR_UNKNOWN:           errstr = "Unknown error occurred"                       ; break;
+    case AVERROR(EINVAL):           errstr = "Invalid argument"                             ; break;
+    case 0:                         errstr = "Success"                                      ; break;
     }
 
     if (errstr) {



More information about the ffmpeg-cvslog mailing list