History

avcodec/ac3dec: fix downmix logic for eac3

Ensure downmixed is only set once during init, as it used to be. Fixes a regression since acbb2777e28c. Fixes ticket #11321

James Almer committed 1 year ago

Commit 0e07a701 parent f8e91ab1 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/ac3dec.c+1−1
@@ -199,7 +199,6 @@ static void ac3_downmix(AVCodecContext *avctx) · 198 unmodified lines
199199 av_channel_layout_uninit(&avctx->ch_layout);
200200 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
201201 }
202− s->downmixed = 1;
203202 }
204203
205204 /**
@@ -241,6 +240,7 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx) · 35 unmodified lines
241240 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
242241
243242 ac3_downmix(avctx);
243+ s->downmixed = 1;
244244
245245 for (i = 0; i < AC3_MAX_CHANNELS; i++) {
246246 s->xcfptr[i] = s->transform_coeffs[i];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t