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

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/speexdec.c+1−1
@@ -1234,7 +1234,7 @@ static int sb_decode(AVCodecContext *avctx, void *ptr_st, · 1233 unmodified lines
1234 mode = st->mode;1234 mode = st->mode;
1235 1235
1236 if (st->modeID > 0) {1236 if (st->modeID > 0) {
1237 if (packets_left <= 1)1237 if (packets_left * s->frame_size < 2*st->frame_size)
1238 return AVERROR_INVALIDDATA;1238 return AVERROR_INVALIDDATA;
1239 low_innov_alias = out + st->frame_size;1239 low_innov_alias = out + st->frame_size;
1240 s->st[st->modeID - 1].innov_save = low_innov_alias;1240 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