From a16577d9857206089fd8bce6a342b31dbd7fb9b0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 7 Sep 2013 21:06:22 +0200 Subject: MSN Audio support This is essentially a MS GSM decoder extension that supports more sampling rates and lower bitrates. Signed-off-by: Anton Khirnov --- libavcodec/gsm_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/gsm_parser.c') diff --git a/libavcodec/gsm_parser.c b/libavcodec/gsm_parser.c index 1d381fc109..c0befc7796 100644 --- a/libavcodec/gsm_parser.c +++ b/libavcodec/gsm_parser.c @@ -50,7 +50,8 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, s->duration = GSM_FRAME_SIZE; break; case AV_CODEC_ID_GSM_MS: - s->block_size = GSM_MS_BLOCK_SIZE; + s->block_size = avctx->block_align ? avctx->block_align + : GSM_MS_BLOCK_SIZE; s->duration = GSM_FRAME_SIZE * 2; break; default: -- cgit v1.2.3