summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-12-14 22:14:28 +0200
committerMartin Storsjö <martin@martin.st>2011-12-15 09:08:21 +0200
commit8637af8d2499e72ad6662627dae9f245e3e961df (patch)
treeb3904318c53d0c51b7354cd4057f66fbed0ba4cf /libavcodec
parentf7de52354fe15ba7cae141b44ffdd01e560f0e47 (diff)
libgsm: Set options on the right object
This fixes regressions in decoding using the libgsm_ms decoder, broken since 0eea21294354. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libgsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 22629c657c..7623d35e81 100644
--- a/libavcodec/libgsm.c
+++ b/libavcodec/libgsm.c
@@ -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;
}