aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2014-08-28 15:48:13 +0000
committerPaul B Mahol <onemda@gmail.com>2014-08-28 15:52:25 +0000
commit0ddb0516f11383a4c007bb4738de37a4f85c37c0 (patch)
tree99684c6b9cf7a2be3108527a312caaec57c5a77e
parentef768ab9763d265a69d606ca55ad465c272d0b94 (diff)
downloadffmpeg-0ddb0516f11383a4c007bb4738de37a4f85c37c0.tar.gz
avformat/soxenc: return more meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/soxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 01ebe9c6af..95af10c49a 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)