Ticket #23: MP4_fails_under_hurdi386.patch

File MP4_fails_under_hurdi386.patch, 506 bytes (added by Cyril Lavier, 15 years ago)

First draft of a patch aiming to resolve this issue.

  • nginx-1.1.4/src/http/modules/ngx_http_mp4_module.c

    old new  
    10661066
    10671067    atom_header = mp4->mdat_atom_header;
    10681068
    1069     if (atom_data_size > 0xffffffff) {
     1069    if ((uint32_t)atom_data_size > 0xffffffff) {
    10701070        atom_size = 1;
    10711071        atom_header_size = sizeof(ngx_mp4_atom_header64_t);
    10721072        ngx_mp4_set_64value(atom_header + sizeof(ngx_mp4_atom_header_t),