aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-09-23 01:44:27 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-09-24 02:33:48 +0200
commitd8ef5a47bba85fa147ac53a9d9523b3eca031696 (patch)
treec9a5299df701fdef1efe4fd2240fe921705b506c
parent9cec1742475b0d8d9c8090b2c6e80f53d00727a9 (diff)
downloadffmpeg-d8ef5a47bba85fa147ac53a9d9523b3eca031696.tar.gz
avcodec/flacenc: Replace "return -1" by named constant
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 3575f5391d..170c3caf48 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -268,7 +268,7 @@ static av_cold int flac_encode_init(AVCodecContext *avctx)
/* find samplerate in table */
if (freq < 1)
- return -1;
+ return AVERROR(EINVAL);
for (i = 4; i < 12; i++) {
if (freq == ff_flac_sample_rate_table[i]) {
s->samplerate = ff_flac_sample_rate_table[i];