libgsm: Set options on the right object
This fixes regressions in decoding using the libgsm_ms decoder, broken since0eea212943
. Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit8637af8d24
) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
1d23f5bbef
commit
a11c9d7778
@@ -155,7 +155,7 @@ static av_cold int libgsm_decode_init(AVCodecContext *avctx) {
|
||||
break;
|
||||
case CODEC_ID_GSM_MS: {
|
||||
int one = 1;
|
||||
gsm_option(avctx->priv_data, GSM_OPT_WAV49, &one);
|
||||
gsm_option(s->state, GSM_OPT_WAV49, &one);
|
||||
avctx->frame_size = 2 * GSM_FRAME_SIZE;
|
||||
avctx->block_align = GSM_MS_BLOCK_SIZE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user