VIDEO: After figuring out sample rate, rewind the AC-3 stream
This commit is contained in:
parent
ad41dfb7ff
commit
89ec9766a1
1 changed files with 3 additions and 3 deletions
|
@ -593,12 +593,12 @@ void MPEGPSDecoder::AC3AudioTrack::initStream(Common::SeekableReadStream *packet
|
||||||
packet->seek(i, SEEK_SET);
|
packet->seek(i, SEEK_SET);
|
||||||
packet->read(buf, sizeof(buf));
|
packet->read(buf, sizeof(buf));
|
||||||
|
|
||||||
int packetLength = a52_syncinfo(buf, &flags, &_sampleRate, &bitRate);
|
if (a52_syncinfo(buf, &flags, &_sampleRate, &bitRate) > 0) {
|
||||||
|
|
||||||
if (packetLength > 0) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
packet->seek(0, SEEK_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue