[1/2] libgsm: Set options on the right object

Message ID 1323894841-54801-1-git-send-email-martin@martin.st
State Committed
Commit 8637af8d2499e72ad6662627dae9f245e3e961df
Headers show

Commit Message

Martin Storsjö Dec. 14, 2011, 8:34 p.m.
This fixes regressions in decoding using the libgsm_ms decoding,
broken since 0eea21294354.
---
 libavcodec/libgsm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Luca Barbato Dec. 14, 2011, 8:36 p.m. | #1
On 14/12/11 21:34, Martin Storsjö wrote:
> This fixes regressions in decoding using the libgsm_ms decoding,
> broken since 0eea21294354.


Ok

Patch

diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 22629c6..7623d35 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;
         }