summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)