diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-23 01:44:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-24 02:33:48 +0200 |
commit | d8ef5a47bba85fa147ac53a9d9523b3eca031696 (patch) | |
tree | c9a5299df701fdef1efe4fd2240fe921705b506c | |
parent | 9cec1742475b0d8d9c8090b2c6e80f53d00727a9 (diff) | |
download | ffmpeg-d8ef5a47bba85fa147ac53a9d9523b3eca031696.tar.gz |
avcodec/flacenc: Replace "return -1" by named constant
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/flacenc.c | 2 |
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]; |