You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
gsm_parser: fix infinite loop
Fixes Ticket1894 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -54,7 +54,10 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
|
||||
s->duration = GSM_FRAME_SIZE * 2;
|
||||
break;
|
||||
default:
|
||||
return AVERROR(EINVAL);
|
||||
*poutbuf = buf;
|
||||
*poutbuf_size = buf_size;
|
||||
av_log(avctx, AV_LOG_ERROR, "Invalid codec_id\n");
|
||||
return buf_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user