[xiph-commits] r17073 - trunk/vorbis-tools/vcut

giles at svn.xiph.org giles at svn.xiph.org
Thu Mar 25 22:12:12 PDT 2010


Author: giles
Date: 2010-03-25 22:12:12 -0700 (Thu, 25 Mar 2010)
New Revision: 17073

Modified:
   trunk/vorbis-tools/vcut/vcut.c
Log:
The the return value of ogg_stream_pagein() in vcut.

Fixes an unchecked value warning reported by clang's scan-build tool.


Modified: trunk/vorbis-tools/vcut/vcut.c
===================================================================
--- trunk/vorbis-tools/vcut/vcut.c	2010-03-26 05:07:26 UTC (rev 17072)
+++ trunk/vorbis-tools/vcut/vcut.c	2010-03-26 05:12:12 UTC (rev 17073)
@@ -540,6 +540,12 @@
 		if(!vs->headers[headercount].packet) break;
 
 	result = ogg_stream_pagein(&vs->stream_in, page);
+	if(result)
+	{
+		fprintf(stderr, _("Internal stream parsing error\n"));
+		return -1;
+	}
+
 	while(1)
 	{
 		ogg_packet packet;



More information about the commits mailing list