History

avcodec/speexdec: consider differing frame sizes in remaining space check

Fixes: talk109-q5.spx Regression since: f6986e75be87f512f65d64ac91ba19d505a8d210

Michael Niedermayer committed 1 year ago

Commit cfd1f811 parent 89ec66d1 file · +1 −1Browse files

Unified · Split

libavcodec/speexdec.c+1−1
@@ -1234,7 +1234,7 @@ static int sb_decode(AVCodecContext *avctx, void *ptr_st, · 1233 unmodified lines
12341234 mode = st->mode;
12351235
12361236 if (st->modeID > 0) {
1237− if (packets_left <= 1)
1237+ if (packets_left * s->frame_size < 2*st->frame_size)
12381238 return AVERROR_INVALIDDATA;
12391239 low_innov_alias = out + st->frame_size;
12401240 s->st[st->modeID - 1].innov_save = low_innov_alias;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t