Fix the header size for the Oceanic Veo 3.

This commit is contained in:
Jef Driesen 2010-11-26 22:32:17 +01:00
parent c4172ecdf6
commit 55a0a3fe0f

View File

@ -219,10 +219,9 @@ oceanic_atom2_parser_samples_foreach (parser_t *abstract, sample_callback_t call
unsigned int header = 4 * PAGESIZE;
if (parser->model == GEO || parser->model == DATAMASK ||
parser->model == GEO20 || parser->model == VEO20)
parser->model == GEO20 || parser->model == VEO20 ||
parser->model == VEO30)
header -= PAGESIZE;
else if (parser->model == VEO30)
header -= PAGESIZE / 2;
if (size < header + 3 * PAGESIZE / 2)
return PARSER_STATUS_ERROR;