You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/g723_1dec: actually decode second channel
This commit is contained in:
@@ -883,7 +883,8 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
G723_1_ChannelContext *p = &s->ch[ch];
|
G723_1_ChannelContext *p = &s->ch[ch];
|
||||||
int16_t *audio = p->audio;
|
int16_t *audio = p->audio;
|
||||||
|
|
||||||
if (unpack_bitstream(p, buf, buf_size) < 0) {
|
if (unpack_bitstream(p, buf + ch * (buf_size / avctx->channels),
|
||||||
|
buf_size / avctx->channels) < 0) {
|
||||||
bad_frame = 1;
|
bad_frame = 1;
|
||||||
if (p->past_frame_type == ACTIVE_FRAME)
|
if (p->past_frame_type == ACTIVE_FRAME)
|
||||||
p->cur_frame_type = ACTIVE_FRAME;
|
p->cur_frame_type = ACTIVE_FRAME;
|
||||||
|
Reference in New Issue
Block a user