mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix bug: LFE moved to wrong position.
This commit is contained in:
parent
08246b5ac3
commit
ced54a5cf1
@ -1,6 +1,7 @@
|
|||||||
User johns
|
User johns
|
||||||
Date:
|
Date:
|
||||||
|
|
||||||
|
Fix bug: LFE moved to wrong position.
|
||||||
Guard suspend/resume against multiple calls.
|
Guard suspend/resume against multiple calls.
|
||||||
Add support for AAC LATM audio streams.
|
Add support for AAC LATM audio streams.
|
||||||
Fix bug: alsa and ffmpeg use different channel layout.
|
Fix bug: alsa and ffmpeg use different channel layout.
|
||||||
|
12
codec.c
12
codec.c
@ -770,9 +770,9 @@ static void CodecReorderAudioFrame(int16_t * buf, int size, int channels)
|
|||||||
size /= 2;
|
size /= 2;
|
||||||
for (i = 0; i < size; i += 6) {
|
for (i = 0; i < size; i += 6) {
|
||||||
c = buf[i + 2];
|
c = buf[i + 2];
|
||||||
ls = buf[i + 3];
|
lfe = buf[i + 3];
|
||||||
rs = buf[i + 4];
|
ls = buf[i + 4];
|
||||||
lfe = buf[i + 5];
|
rs = buf[i + 5];
|
||||||
buf[i + 2] = ls;
|
buf[i + 2] = ls;
|
||||||
buf[i + 3] = rs;
|
buf[i + 3] = rs;
|
||||||
buf[i + 4] = c;
|
buf[i + 4] = c;
|
||||||
@ -783,9 +783,9 @@ static void CodecReorderAudioFrame(int16_t * buf, int size, int channels)
|
|||||||
size /= 2;
|
size /= 2;
|
||||||
for (i = 0; i < size; i += 8) {
|
for (i = 0; i < size; i += 8) {
|
||||||
c = buf[i + 2];
|
c = buf[i + 2];
|
||||||
ls = buf[i + 3];
|
lfe = buf[i + 3];
|
||||||
rs = buf[i + 4];
|
ls = buf[i + 4];
|
||||||
lfe = buf[i + 5];
|
rs = buf[i + 5];
|
||||||
buf[i + 2] = ls;
|
buf[i + 2] = ls;
|
||||||
buf[i + 3] = rs;
|
buf[i + 3] = rs;
|
||||||
buf[i + 4] = c;
|
buf[i + 4] = c;
|
||||||
|
Loading…
Reference in New Issue
Block a user