Mercurial > libdvdnav.hg
comparison searching.c @ 131:ada79e606d8d src
fix comment
author | mroi |
---|---|
date | Fri, 21 Mar 2003 18:06:44 +0000 |
parents | f47065513ad8 |
children | f22458f928b8 |
comparison
equal
deleted
inserted
replaced
130:f47065513ad8 | 131:ada79e606d8d |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2000 Rich Wareham <richwareham@users.sourceforge.net> | 2 * Copyright (C) 2000 Rich Wareham <richwareham@users.sourceforge.net> |
3 * | 3 * |
4 * This file is part of libdvdnav, a DVD navigation library. | 4 * This file is part of libdvdnav, a DVD navigation library. |
5 * | 5 * |
6 * libdvdnav is free software; you can redistribute it and/or modify | 6 * libdvdnav is free software; you can redistribute it and/or modify |
181 cell = &(state->pgc->cell_playback[cell_nr-1]); | 181 cell = &(state->pgc->cell_playback[cell_nr-1]); |
182 length = cell->last_sector - cell->first_sector + 1; | 182 length = cell->last_sector - cell->first_sector + 1; |
183 if (target >= length) { | 183 if (target >= length) { |
184 target -= length; | 184 target -= length; |
185 } else { | 185 } else { |
186 /* convert the target sector from PG-relative to absolute physical sector */ | 186 /* convert the target sector from Cell-relative to absolute physical sector */ |
187 target += cell->first_sector; | 187 target += cell->first_sector; |
188 found = 1; | 188 found = 1; |
189 break; | 189 break; |
190 } | 190 } |
191 } | 191 } |