Compressed audio fixes for Flash-based protocols
This commit is contained in:
parent
3157bfdd35
commit
c12e7897cf
2 changed files with 3 additions and 3 deletions
|
@ -516,7 +516,7 @@ bool FLV::Tag::DTSCLoader(DTSC::Packet & packData, DTSC::Track & track) {
|
|||
} else if (datarate >= 11025) {
|
||||
data[11] |= 0x04;
|
||||
}
|
||||
if (track.size == 16) {
|
||||
if (track.size != 8) {
|
||||
data[11] |= 0x02;
|
||||
}
|
||||
if (track.channels > 1) {
|
||||
|
@ -620,7 +620,7 @@ bool FLV::Tag::DTSCAudioInit(DTSC::Track & audio) {
|
|||
} else if (datarate >= 11025) {
|
||||
data[11] += 0x04;
|
||||
}
|
||||
if (audio.size == 16) {
|
||||
if (audio.size != 8) {
|
||||
data[11] += 0x02;
|
||||
}
|
||||
if (audio.channels > 1) {
|
||||
|
|
|
@ -259,7 +259,7 @@ namespace Mist {
|
|||
}else if (track.rate >= 11025){
|
||||
dataheader[0] |= 0x04;
|
||||
}
|
||||
if (track.size == 16){
|
||||
if (track.size != 8){
|
||||
dataheader[0] |= 0x02;
|
||||
}
|
||||
if (track.channels > 1){
|
||||
|
|
Loading…
Add table
Reference in a new issue