vorbisparse: pedantically recognize undefined headers too

This commit is contained in:
Vincent Penquerc'h 2012-02-01 16:46:13 +00:00
parent 809546c324
commit b647c627e4

View file

@ -401,13 +401,8 @@ vorbis_parse_parse_packet (GstVorbisParse * parse, GstBuffer * buf)
have_header = FALSE; have_header = FALSE;
if (size >= 1) { if (size >= 1) {
switch (data[0]) { if (data[0] & 1)
case 1: have_header = TRUE;
case 3:
case 5:
have_header = TRUE;
break;
}
} }
if (have_header) { if (have_header) {