[cvs-annodex] commit (/annodex): libfishsound/trunk/src/libfishsound/vorbis.c

conrad nobody at lists.annodex.net
Mon Sep 13 11:29:32 EST 2004


Update of /annodex (new revision 568)

Modified files:
   libfishsound/trunk/src/libfishsound/vorbis.c

Log Message:
move frameno calc to before calling of encoded callback (same as speex)


Modified: libfishsound/trunk/src/libfishsound/vorbis.c
===================================================================
--- libfishsound/trunk/src/libfishsound/vorbis.c	2004-09-12 22:32:31 UTC (rev 567)
+++ libfishsound/trunk/src/libfishsound/vorbis.c	2004-09-13 01:29:31 UTC (rev 568)
@@ -394,11 +394,11 @@
       if (fsound->callback.encoded) {
 	FishSoundEncoded encoded = (FishSoundEncoded)fsound->callback.encoded;
 
-	encoded (fsound, op.packet, op.bytes, fsound->user_data);
-
 	if (op.granulepos != -1)
 	  fsound->frameno = op.granulepos;
 
+	encoded (fsound, op.packet, op.bytes, fsound->user_data);
+
 	fsv->packetno++;
       }
     }


-- 
conrad



More information about the cvs-annodex mailing list