Commit 0ddb0516 authored by Paul B Mahol's avatar Paul B Mahol

avformat/soxenc: return more meaningful error code

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ef768ab9
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment