Changeset 3739
- Timestamp:
- 2008-10-27 01:04:40 (2 months ago)
- Files:
-
- libannodex/trunk/src/importers/anx_import_ogg.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libannodex/trunk/src/importers/anx_import_ogg.c
r3589 r3739 842 842 * loop will end. 843 843 * 844 * NOTE THAT this starts scanning from the specified startpos for the media. 844 * Note that in anxogg_setup() below, this packet reading callback is 845 * used after seeking to the specified startpos for the media. 845 846 */ 846 847 static int … … 862 863 863 864 granulepos = ogg_page_granulepos ((ogg_page *)og); 865 if (granulepos == -1) return OGGZ_STOP_OK; 864 866 865 867 #ifdef DEBUG … … 906 908 907 909 /* Slurp in granuleinfo */ 908 if (aot->need_keygranule && granulepos != -1) {910 if (aot->need_keygranule) { 909 911 iframe = granulepos >> track->granuleshift; 910 912 pframe = granulepos - (iframe << track->granuleshift); 913 914 if (iframe > 0 && track->basegranule == 0.0) 915 track->basegranule = (iframe-1) << track->granuleshift; 911 916 912 917 #if 1 … … 928 933 aot->keygranule = iframe << track->granuleshift; 929 934 aot->need_keygranule = 0; 930 935 931 936 offset = gp_to_time (aod->oggz, serialno, aot->keygranule); 932 937 aot->keygranule_time = offset;