summaryrefslogtreecommitdiff
path: root/libavcodec/gsm_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-26 12:37:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-26 12:37:20 +0100
commit8c87658fdc657fa0c19c9b507645b03d5295eb49 (patch)
tree3773185b8bb1de15485e5aef4784d38d47ff8d63 /libavcodec/gsm_parser.c
parentac021fdc40631f77a727f076f8748f89109c785b (diff)
parenta16577d9857206089fd8bce6a342b31dbd7fb9b0 (diff)
downloadffmpeg-8c87658fdc657fa0c19c9b507645b03d5295eb49.tar.gz
Merge commit 'a16577d9857206089fd8bce6a342b31dbd7fb9b0'
* commit 'a16577d9857206089fd8bce6a342b31dbd7fb9b0': MSN Audio support Conflicts: libavformat/riff.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/gsm_parser.c')
-rw-r--r--libavcodec/gsm_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/gsm_parser.c b/libavcodec/gsm_parser.c
index f76bbef3e7..9a3b94ef1d 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: