From 0ddb0516f11383a4c007bb4738de37a4f85c37c0 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 28 Aug 2014 15:48:13 +0000 Subject: avformat/soxenc: return more meaningful error code Signed-off-by: Paul B Mahol --- libavformat/soxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/soxenc.c') 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) -- cgit v1.2.3