[xiph-commits] r16481 - trunk/y4oi

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Aug 13 22:12:40 PDT 2009


Author: xiphmont
Date: 2009-08-13 22:12:40 -0700 (Thu, 13 Aug 2009)
New Revision: 16481

Modified:
   trunk/y4oi/y4oi.c
Log:
Correct audio frame splitting bug



Modified: trunk/y4oi/y4oi.c
===================================================================
--- trunk/y4oi/y4oi.c	2009-08-13 15:03:32 UTC (rev 16480)
+++ trunk/y4oi/y4oi.c	2009-08-14 05:12:40 UTC (rev 16481)
@@ -733,7 +733,7 @@
            and seek past */
         p->swap = f;
         p->swap_pos = ftello(f);
-        if(fseeko(f,length,SEEK_CUR)){
+        if(fseeko(f,bytes,SEEK_CUR)){
           fprintf(stderr,"ERROR: unable to advance in frame data; %s\n",strerror(errno));
           return pret;
         }
@@ -2013,18 +2013,15 @@
           if(outoffsets[sno]<0){
             /* there's an already-established gap in the stream.  dup it out */
             if(duplicate_frame(outfile,ty,lastframe,outclock,cutclock,cutticks,outoffsets,sno)){
-              fprintf(stderr,"break\n");
               break;
             }
           }else if (outoffsets[sno]>0){
             trim_from_tail(ty,sno,outclock,outoffsets);
           }else{
             if(limited_prime(ty,sno)){
-              fprintf(stderr,"break\n");
               break;
             }
             if(search_offset(ty,sync_stream,sno,outclock,outoffsets,lastframe)){
-              fprintf(stderr,"break\n");
               break;
             }
             if(s->inq_tail->presync && outoffsets[sno]==0)



More information about the commits mailing list