[FFmpeg-cvslog] avformat/soxenc: return more meaningful error code

Paul B Mahol git at videolan.org
Thu Aug 28 17:52:45 CEST 2014


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Aug 28 15:48:13 2014 +0000| [0ddb0516f11383a4c007bb4738de37a4f85c37c0] | committer: Paul B Mahol

avformat/soxenc: return more meaningful error code

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavformat/soxenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 01ebe9c..95af10c 100644
--- a/libavformat/soxenc.c
+++ b/libavformat/soxenc.c
@@ -72,7 +72,7 @@ static int sox_write_header(AVFormatContext *s)
         avio_wb32(pb, comment_size);
     } else {
         av_log(s, AV_LOG_ERROR, "invalid codec; use pcm_s32le or pcm_s32be\n");
-        return -1;
+        return AVERROR(EINVAL);
     }
 
     if (comment_len)



More information about the ffmpeg-cvslog mailing list