vorbisparse: pedantically recognize undefined headers too
This commit is contained in:
parent
809546c324
commit
b647c627e4
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user