[xiph-commits] r3490 - liboggz/trunk/src/tools
conrad at svn.annodex.net
conrad at svn.annodex.net
Sat Feb 23 23:47:56 PST 2008
Author: conrad
Date: 2008-02-23 23:47:55 -0800 (Sat, 23 Feb 2008)
New Revision: 3490
Modified:
liboggz/trunk/src/tools/oggz-sort.c
Log:
Detect and fix page granulepos that should be -1 but isn't; fixes file error
"on page with no completed packets, must be -1" reported by oggz-validate.
Patch by Timothy B. Terriberry
Modified: liboggz/trunk/src/tools/oggz-sort.c
===================================================================
--- liboggz/trunk/src/tools/oggz-sort.c 2008-02-20 21:22:49 UTC (rev 3489)
+++ liboggz/trunk/src/tools/oggz-sort.c 2008-02-24 07:47:55 UTC (rev 3490)
@@ -150,7 +150,13 @@
/* If this is the serialno that this input is tracking, stash it;
* otherwise continue scanning the file */
if (serialno == input->serialno) {
- input->og = _ogg_page_copy (og);
+ ogg_page *iog;
+ iog = _ogg_page_copy (og);
+ if(ogg_page_packets(iog)==0&&ogg_page_granulepos(iog)!=-1) {
+ memset(iog->header+6,0xFF,8);
+ ogg_page_checksum_set(iog);
+ }
+ input->og = iog;
return OGGZ_STOP_OK;
} else {
return OGGZ_CONTINUE;
More information about the commits
mailing list