mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-12 01:29:29 +00:00
avcodec/flacenc: Replace "return -1" by named constant
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9cec174247
commit
d8ef5a47bb
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user