Fixes: talk109-q5.spx Regression since: f6986e75be87f512f65d64ac91ba19d505a8d210
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -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; |