Browse Source

avformat/soxenc: return more meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.4
Paul B Mahol 11 years ago
parent
commit
0ddb0516f1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/soxenc.c

+ 1
- 1
libavformat/soxenc.c View File

@@ -72,7 +72,7 @@ static int sox_write_header(AVFormatContext *s)
avio_wb32(pb, comment_size); avio_wb32(pb, comment_size);
} else { } else {
av_log(s, AV_LOG_ERROR, "invalid codec; use pcm_s32le or pcm_s32be\n"); av_log(s, AV_LOG_ERROR, "invalid codec; use pcm_s32le or pcm_s32be\n");
return -1;
return AVERROR(EINVAL);
} }


if (comment_len) if (comment_len)


Loading…
Cancel
Save