[xiph-commits] r3797 - libannodex/trunk/src/importers
conrad at svn.annodex.net
conrad at svn.annodex.net
Wed Nov 19 14:15:31 PST 2008
Author: conrad
Date: 2008-11-19 14:15:31 -0800 (Wed, 19 Nov 2008)
New Revision: 3797
Modified:
libannodex/trunk/src/importers/anx_import_ogg.c
Log:
anx_import_ogg.c: use oggz_get_preroll()
Modified: libannodex/trunk/src/importers/anx_import_ogg.c
===================================================================
--- libannodex/trunk/src/importers/anx_import_ogg.c 2008-11-19 22:15:24 UTC (rev 3796)
+++ libannodex/trunk/src/importers/anx_import_ogg.c 2008-11-19 22:15:31 UTC (rev 3797)
@@ -377,6 +377,7 @@
&track->granule_rate_n,
&track->granule_rate_d);
track->granuleshift = oggz_get_granuleshift (oggz, serialno);
+ track->preroll = oggz_get_preroll (oggz, serialno);
track->content_type = anxogg_strdup (oggz_stream_get_content_type (oggz, serialno));
switch (content) {
@@ -386,15 +387,12 @@
} else {
track->basegranule = (m->start_time - 1.0) * track->granule_rate_n;
}
- track->preroll = 2;
break;
case OGGZ_CONTENT_SPEEX:
track->basegranule = 0;
- track->preroll = 3;
break;
case OGGZ_CONTENT_THEORA:
track->basegranule = 0;
- track->preroll = 0;
break;
case OGGZ_CONTENT_SKELETON:
need_insert = 0;
More information about the commits
mailing list