[FFmpeg-devel] [PATCH] avcodec/speexdec: consider differing frame sizes in remaining space check
James Almer
jamrial at gmail.com
Fri Jun 27 21:18:33 EEST 2025
On 6/27/2025 1:14 PM, Michael Niedermayer wrote:
> Fixes: talk109-q5.spx
Can this file be added to FATE?
> Regression since: f6986e75be87f512f65d64ac91ba19d505a8d210
>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
> libavcodec/speexdec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c
> index 94dce5420cc..ba9faeb15d1 100644
> --- a/libavcodec/speexdec.c
> +++ b/libavcodec/speexdec.c
> @@ -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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250627/0318c3bb/attachment.sig>
More information about the ffmpeg-devel
mailing list