[xiph-commits] r13857 - trunk/theora/lib/dec
giles at svn.xiph.org
giles at svn.xiph.org
Tue Sep 18 00:25:57 PDT 2007
Author: giles
Date: 2007-09-18 00:25:57 -0700 (Tue, 18 Sep 2007)
New Revision: 13857
Modified:
trunk/theora/lib/dec/state.c
Log:
Simplify the version check for the old granulepos scheme. The major and
minor should already have been checked, and we should treat higher tiny
revisions the same.
This will need to be updated if major and minor ever change.
Modified: trunk/theora/lib/dec/state.c
===================================================================
--- trunk/theora/lib/dec/state.c 2007-09-18 07:17:58 UTC (rev 13856)
+++ trunk/theora/lib/dec/state.c 2007-09-18 07:25:57 UTC (rev 13857)
@@ -1185,9 +1185,7 @@
/* 3.2.0 streams mark the frame index instead of the frame count
* this was changed with stream version 3.2.1 */
- if(state->info.version_subminor == 0
- && state->info.version_minor == 2
- && state->info.version_major == 3) {
+ if(state->info.version_subminor < 1) {
return iframe+pframe + 1;
} else {
return iframe+pframe;
More information about the commits
mailing list