mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Fix for Vorbis header packet reading (require 3 for Vorbis and 2 for all others).
This commit is contained in:
parent
2b25f0cbb4
commit
55d2d3d92d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user