diff options
Diffstat (limited to 'libavcodec/wmaprodec.c')
-rw-r--r-- | libavcodec/wmaprodec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 7b489943f4..ba7bddc51c 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -1932,11 +1932,12 @@ static int xma_decode_packet(AVCodecContext *avctx, void *data, for (i = 0; i < s->num_streams; i++) { const int start_ch = s->start_channel[i]; void *left[1] = { frame->extended_data[start_ch + 0] }; - void *right[1] = { frame->extended_data[start_ch + 1] }; av_audio_fifo_read(s->samples[0][i], left, nb_samples); - if (s->xma[i].nb_channels > 1) + if (s->xma[i].nb_channels > 1) { + void *right[1] = { frame->extended_data[start_ch + 1] }; av_audio_fifo_read(s->samples[1][i], right, nb_samples); + } } *got_frame_ptr = nb_samples > 0; |