Skip to content
Snippets Groups Projects
Commit 35b022b5 authored by Ralph Giles's avatar Ralph Giles
Browse files

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.

svn path=/trunk/theora/; revision=13857
parent e5bdd186
No related branches found
No related tags found
No related merge requests found
......@@ -1185,9 +1185,7 @@ ogg_int64_t th_granule_frame(void *_encdec,ogg_int64_t _granpos){
/* 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment