aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-24 13:50:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-24 13:50:38 +0200
commit3bd0221bc1a0b22b190d08758d128eb18c765aaf (patch)
tree752a2d3bc9951eb4d93cf27c4c6838a25403dd12
parentd34d3304a8b72d845ef501c89af5600456d11ddb (diff)
downloadffmpeg-3bd0221bc1a0b22b190d08758d128eb18c765aaf.tar.gz
avformat/wavenc: more specific error return for "Writing 16 bit peak for 8 bit audio"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/wavenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index b782d8cf24..57d626fa2f 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -170,7 +170,7 @@ static av_cold int peak_init_writer(AVFormatContext *s)
if (wav->peak_bps == 1 && wav->peak_format == PEAK_FORMAT_UINT16) {
av_log(s, AV_LOG_ERROR,
"Writing 16 bit peak for 8 bit audio does not make sense\n");
- return -1;
+ return AVERROR(EINVAL);
}
wav->peak_maxpos = av_mallocz(enc->channels * sizeof(*wav->peak_maxpos));