MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / FindNextCell

Function FindNextCell

libhb/dvdnav.c:1961–1985  ·  view source on GitHub ↗

* FindNextCell *********************************************************************** * Assumes pgc and cell_cur are correctly set, and sets cell_next to the * cell to be read when we will be done with cell_cur. **********************************************************************/

Source from the content-addressed store, hash-verified

1959 * cell to be read when we will be done with cell_cur.
1960 **********************************************************************/
1961static int FindNextCell( pgc_t *pgc, int cell_cur )
1962{
1963 int i = 0;
1964 int cell_next;
1965
1966 if( pgc->cell_playback[cell_cur].block_type ==
1967 BLOCK_TYPE_ANGLE_BLOCK )
1968 {
1969
1970 while( pgc->cell_playback[cell_cur+i].block_mode !=
1971 BLOCK_MODE_LAST_CELL )
1972 {
1973 i++;
1974 }
1975 cell_next = cell_cur + i + 1;
1976 hb_log( "dvd: Skipping multi-angle cells %d-%d",
1977 cell_cur,
1978 cell_next - 1 );
1979 }
1980 else
1981 {
1982 cell_next = cell_cur + 1;
1983 }
1984 return cell_next;
1985}
1986
1987/***********************************************************************
1988 * NextPgcn

Callers 2

PttDurationFunction · 0.70
TitleOpenIfoFunction · 0.70

Calls 1

hb_logFunction · 0.85

Tested by

no test coverage detected