Commit a39ea7da authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

Fix dumping streams with less than 3 headers and a hole at start

parent f9e91c47
......@@ -394,7 +394,7 @@ oggz_read_sync (OGGZ * oggz)
/* We can't tolerate holes in headers, so bail out. NB. as stream->packetno
* has not yet been incremented, the current value refers to how many packets
* have been processed prior to this one. */
if (stream->packetno < 2) return OGGZ_ERR_HOLE_IN_DATA;
if (stream->packetno < stream->numheaders - 1) return OGGZ_ERR_HOLE_IN_DATA;
/* Holes in content occur in some files and pretty much don't matter,
* so we silently swallow the notification and reget the packet. */
......
Supports Markdown
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