mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +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);
|
dmx->packet_sizes.push_back(op.bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((dmx->stype == OGM_STREAM_TYPE_VORBIS) && (dmx->packet_data.size() == 3))
|
if (dmx->stype == OGM_STREAM_TYPE_VORBIS) {
|
||||||
dmx->headers_read = true;
|
if (dmx->packet_data.size() == 3)
|
||||||
else if (dmx->packet_data.size() == 2)
|
dmx->headers_read = true;
|
||||||
|
} else if (dmx->packet_data.size() == 2)
|
||||||
dmx->headers_read = true;
|
dmx->headers_read = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user