diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/mpegps_decoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/mpegps_decoder.cpp b/video/mpegps_decoder.cpp index e34053da73..178a2a420a 100644 --- a/video/mpegps_decoder.cpp +++ b/video/mpegps_decoder.cpp @@ -593,12 +593,12 @@ void MPEGPSDecoder::AC3AudioTrack::initStream(Common::SeekableReadStream *packet packet->seek(i, SEEK_SET); packet->read(buf, sizeof(buf)); - int packetLength = a52_syncinfo(buf, &flags, &_sampleRate, &bitRate); - - if (packetLength > 0) { + if (a52_syncinfo(buf, &flags, &_sampleRate, &bitRate) > 0) { break; } } + + packet->seek(0, SEEK_SET); } enum { |