Commit 809546c3 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

vorbisparse: fix header detection

It was matching non header packets.

This fixes various leaks, where buffers would be pushed onto a headers
list, but never popped.

Might also fix corruption as those buffers were dropped from the output
parent 6f6f079d
......@@ -401,8 +401,13 @@ vorbis_parse_parse_packet (GstVorbisParse * parse, GstBuffer * buf)
have_header = FALSE;
if (size >= 1) {
if (data[0] >= 0x01 && data[0] <= 0x05)
have_header = TRUE;
switch (data[0]) {
case 1:
case 3:
case 5:
have_header = TRUE;
if (have_header) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment