mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
Mp4: skipped empty stss atom table in output.
The atom may have no data entries after cropping. This fixes "zero size buf in output" alerts.
This commit is contained in:
parent
effbf466aa
commit
2070abf516
@ -2273,6 +2273,7 @@ ngx_http_mp4_update_stss_atom(ngx_http_mp4_file_t *mp4,
|
|||||||
ngx_http_mp4_crop_stss_data(mp4, trak, 1);
|
ngx_http_mp4_crop_stss_data(mp4, trak, 1);
|
||||||
ngx_http_mp4_crop_stss_data(mp4, trak, 0);
|
ngx_http_mp4_crop_stss_data(mp4, trak, 0);
|
||||||
|
|
||||||
|
if (trak->sync_samples_entries) {
|
||||||
entry = (uint32_t *) data->pos;
|
entry = (uint32_t *) data->pos;
|
||||||
end = (uint32_t *) data->last;
|
end = (uint32_t *) data->last;
|
||||||
|
|
||||||
@ -2285,6 +2286,10 @@ ngx_http_mp4_update_stss_atom(ngx_http_mp4_file_t *mp4,
|
|||||||
entry++;
|
entry++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
trak->out[NGX_HTTP_MP4_STSS_DATA].buf = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
atom_size = sizeof(ngx_http_mp4_stss_atom_t) + (data->last - data->pos);
|
atom_size = sizeof(ngx_http_mp4_stss_atom_t) + (data->last - data->pos);
|
||||||
trak->size += atom_size;
|
trak->size += atom_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user