[ogg-dev] Convert skeleton to "regular" format

yorn at gmx.net yorn at gmx.net
Mon May 4 09:23:50 PDT 2009


Ok, I see. The patch below should fix the problem entirely.

This patch will also solve any problems with actually "unkown" streams (which are all streams except theora, vorbis and kate)

- Yorn

Patch:
Index: /Users/seger/workspaceEE/oggvt/src/oggCut.cpp
===================================================================
--- /Users/seger/workspaceEE/oggvt/src/oggCut.cpp	(revision 22)
+++ /Users/seger/workspaceEE/oggvt/src/oggCut.cpp	(working copy)
@@ -187,8 +187,9 @@
   for (uint32 i(0); i<streamConfigList.size(); ++i) {
     StreamConfig& conf(streamConfigList[i]);
     std::cerr << "Stream No: "<<(int)conf.streamNo<<"(0x"<<std::hex
-        << conf.serialNo<<std::dec<<")\n"
-        << streamConfigList[i].parameter->toString();
+        << conf.serialNo<<std::dec<<")\n";
+    if (streamConfigList[i].parameter)
+        std::cerr << streamConfigList[i].parameter->toString();
     if (streamConfigList[i].type == ogg_theora)
       foundTheora = true;
     offset[i] = -1;

-------- Original-Nachricht --------
> Datum: Mon, 04 May 2009 17:41:16 +0200
> Von: Oliver Frommel <ofrommel at linuxnewmedia.de>
> An: 
> CC: ogg-dev at xiph.org
> Betreff: Re: [ogg-dev] Convert skeleton to "regular" format

> 
> > 
> > I thought I fixed the problem with oggCut and ogg skeleton. What version
> of the Ogg Video Tools are you actually using? If you fixed the problem, I
> would be happy for a patch :-).
> > 
> 
> Well, the fix was more of a hack :) I was using oggvideotools 0.7a and
> the fix is removing the output from lines 189-191 in oggCut.cpp. The
> toString() method seems to trigger the segfault.
> 
> Best
> Oliver
> _______________________________________________
> ogg-dev mailing list
> ogg-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/ogg-dev


More information about the ogg-dev mailing list