Commit d8ef5a47 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/flacenc: Replace "return -1" by named constant

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9cec1742
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment