Fix for Vorbis header packet reading (require 3 for Vorbis and 2 for all others).

This commit is contained in:
Moritz Bunkus 2004-02-08 22:37:41 +00:00
parent 2b25f0cbb4
commit 55d2d3d92d

View File

@ -1015,9 +1015,10 @@ ogm_reader_c::process_header_page(ogg_page *og) {
dmx->packet_sizes.push_back(op.bytes);
}
if ((dmx->stype == OGM_STREAM_TYPE_VORBIS) && (dmx->packet_data.size() == 3))
dmx->headers_read = true;
else if (dmx->packet_data.size() == 2)
if (dmx->stype == OGM_STREAM_TYPE_VORBIS) {
if (dmx->packet_data.size() == 3)
dmx->headers_read = true;
} else if (dmx->packet_data.size() == 2)
dmx->headers_read = true;
}