comparison src/http/modules/ngx_http_mp4_module.c @ 4382:b4d54fa76853

Fixed mp4 if first entry in stsc was skipped (ticket #72). If first entry in stsc atom was skipped, and seek was to chunk boundary, than first_chunk in the generated stsc table wasn't set to 1.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 26 Dec 2011 10:49:03 +0000
parents 05f3174483de
children b20019ecfdcc
comparison
equal deleted inserted replaced
4381:e9a0427f4139 4382:b4d54fa76853
2380 trak->start_chunk, trak->chunk_samples); 2380 trak->start_chunk, trak->chunk_samples);
2381 2381
2382 data->pos = (u_char *) entry; 2382 data->pos = (u_char *) entry;
2383 atom_size = sizeof(ngx_mp4_stsc_atom_t) + (data->last - data->pos); 2383 atom_size = sizeof(ngx_mp4_stsc_atom_t) + (data->last - data->pos);
2384 2384
2385 ngx_mp4_set_32value(entry->chunk, 1);
2386
2385 if (trak->chunk_samples) { 2387 if (trak->chunk_samples) {
2386 2388
2387 first = &trak->stsc_chunk_entry; 2389 first = &trak->stsc_chunk_entry;
2388 ngx_mp4_set_32value(first->chunk, 1); 2390 ngx_mp4_set_32value(first->chunk, 1);
2389 ngx_mp4_set_32value(first->samples, samples - trak->chunk_samples); 2391 ngx_mp4_set_32value(first->samples, samples - trak->chunk_samples);