1 | diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
|
---|
2 | index bb49da1..96ef0f5 100644
|
---|
3 | --- a/ext/faad/gstfaad.c
|
---|
4 | +++ b/ext/faad/gstfaad.c
|
---|
5 | @@ -1386,6 +1386,13 @@ gst_faad_chain (GstPad * pad, GstBuffer * buffer)
|
---|
6 | /* guint profile; */
|
---|
7 |
|
---|
8 | fr_ch = (input_data[2] & 0x01) << 2 | (input_data[3] >> 6);
|
---|
9 | + /* adhock work-around for streams with ISDB-T/S specific audio config,
|
---|
10 | + where the nch in ADTS header is set to 0 and PCE inserted.
|
---|
11 | + used for dual-mono(1+1ch), 2+1ch, 2+2ch,
|
---|
12 | + but only dual-mono is encouraged. see ARIB-STD B32 */
|
---|
13 | + if (fr_ch == 0)
|
---|
14 | + fr_ch = 2;
|
---|
15 | +
|
---|
16 | rate = sample_rate[(input_data[2] & 0x3C) >> 2];
|
---|
17 | /* profile = (input_data[2] & 0xC0) >> 6; */
|
---|
18 |
|
---|