mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
avformat/soxenc: return more meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ef768ab976
commit
0ddb0516f1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user