mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/aacsbr: Replace impossible condition by assert
bits can have a value of 0 or 1 they are never -1 or otherwise negative Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ae3d2afd46
commit
0b961423ee
@ -728,7 +728,8 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bs_pointer < 0 || bs_pointer > ch_data->bs_num_env + 1) {
|
av_assert0(bs_pointer >= 0);
|
||||||
|
if (bs_pointer > ch_data->bs_num_env + 1) {
|
||||||
av_log(ac->avctx, AV_LOG_ERROR,
|
av_log(ac->avctx, AV_LOG_ERROR,
|
||||||
"Invalid bitstream, bs_pointer points to a middle noise border outside the time borders table: %d\n",
|
"Invalid bitstream, bs_pointer points to a middle noise border outside the time borders table: %d\n",
|
||||||
bs_pointer);
|
bs_pointer);
|
||||||
|
Loading…
Reference in New Issue
Block a user