From 55d2d3d92d421853f66fedfed60ba2cb674caf58 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 8 Feb 2004 22:37:41 +0000 Subject: [PATCH] Fix for Vorbis header packet reading (require 3 for Vorbis and 2 for all others). --- src/input/r_ogm.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/input/r_ogm.cpp b/src/input/r_ogm.cpp index 30f1de030..e5e81b16d 100644 --- a/src/input/r_ogm.cpp +++ b/src/input/r_ogm.cpp @@ -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; }