You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
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:
@ -1234,7 +1234,7 @@ static int sb_decode(AVCodecContext *avctx, void *ptr_st,
|
|||||||
mode = st->mode;
|
mode = st->mode;
|
||||||
|
|
||||||
if (st->modeID > 0) {
|
if (st->modeID > 0) {
|
||||||
if (packets_left <= 1)
|
if (packets_left * s->frame_size < 2*st->frame_size)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
low_innov_alias = out + st->frame_size;
|
low_innov_alias = out + st->frame_size;
|
||||||
s->st[st->modeID - 1].innov_save = low_innov_alias;
|
s->st[st->modeID - 1].innov_save = low_innov_alias;
|
||||||
|
Reference in New Issue
Block a user