You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
sonic: cleanup/simplify num_taps check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -527,9 +527,7 @@ static av_cold int sonic_encode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// max tap 2048
|
// max tap 2048
|
||||||
if ((s->num_taps < 32) || (s->num_taps > 1024) ||
|
if (s->num_taps < 32 || s->num_taps > 1024 || s->num_taps % 32) {
|
||||||
((s->num_taps>>5)<<5 != s->num_taps))
|
|
||||||
{
|
|
||||||
av_log(avctx, AV_LOG_ERROR, "Invalid number of taps\n");
|
av_log(avctx, AV_LOG_ERROR, "Invalid number of taps\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user