Commit afad2f5b authored by conrad's avatar conrad

fix crash in oggzinfo if a skeleton track refers to a track not

found in the physical stream (while a skeleton track like this is
moderately useful, it can happen if you demux tracks and oggzinfo each
of them). Patch by ogg.k.ogg.k

git-svn-id: 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent cda0b80b
......@@ -397,8 +397,13 @@ read_packet_pass1 (OGGZ * oggz, ogg_packet * op, long serialno,
int ret = fisbone_from_ogg(op, &fp);
if (ret<0) return ret;
oit = oggz_table_lookup (info->tracks, fp.serial_no);
oit->has_fisbone = 1;
oit->fbInfo = fp;
if (oit) {
oit->has_fisbone = 1;
oit->fbInfo = fp;
else {
fprintf(stderr, "Warning: logical stream %08x referenced by skeleton was not found\n",fp.serial_no);
} else if (!op->e_o_s && !memcmp(op->packet, FISHEAD_IDENTIFIER, 8)) {
fishead_packet fp;
int ret = fishead_from_ogg(op, &fp);
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