mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vorbisparse: pedantically recognize undefined headers too
This commit is contained in:
parent
809546c324
commit
b647c627e4
1 changed files with 2 additions and 7 deletions
|
@ -401,13 +401,8 @@ vorbis_parse_parse_packet (GstVorbisParse * parse, GstBuffer * buf)
|
|||
|
||||
have_header = FALSE;
|
||||
if (size >= 1) {
|
||||
switch (data[0]) {
|
||||
case 1:
|
||||
case 3:
|
||||
case 5:
|
||||
have_header = TRUE;
|
||||
break;
|
||||
}
|
||||
if (data[0] & 1)
|
||||
have_header = TRUE;
|
||||
}
|
||||
|
||||
if (have_header) {
|
||||
|
|
Loading…
Reference in a new issue