avcodec/speexdec: consider differing frame sizes in remaining space check
Fixes: talk109-q5.spx
Regression since: f6986e75be
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
89ec66d61b
commit
cfd1f81e7d
1 changed files with 1 additions and 1 deletions
|
|
@ -1234,7 +1234,7 @@ static int sb_decode(AVCodecContext *avctx, void *ptr_st,
|
|||
mode = st->mode;
|
||||
|
||||
if (st->modeID > 0) {
|
||||
if (packets_left <= 1)
|
||||
if (packets_left * s->frame_size < 2*st->frame_size)
|
||||
return AVERROR_INVALIDDATA;
|
||||
low_innov_alias = out + st->frame_size;
|
||||
s->st[st->modeID - 1].innov_save = low_innov_alias;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue