]> git.kaiwu.me - nginx.git/commitdiff
Merging r4190, r4232:
authorIgor Sysoev <igor@sysoev.ru>
Tue, 1 Nov 2011 14:02:07 +0000 (14:02 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 1 Nov 2011 14:02:07 +0000 (14:02 +0000)
MP4 related fixes:

*) Fixing mp4 module seeking on 32-bit platforms.

*) Adding m4a and m4v MIME types (ticket #42).

conf/mime.types
src/http/modules/ngx_http_mp4_module.c

index c4ab45ec9448054bae7bf67fc2464d91d922b2fa..24e866e8f1a542f7d4179e99c7f386621c2e9251 100644 (file)
@@ -62,6 +62,7 @@ types {
     audio/midi                            mid midi kar;
     audio/mpeg                            mp3;
     audio/ogg                             ogg;
+    audio/x-m4a                           m4a;
     audio/x-realaudio                     ra;
 
     video/3gpp                            3gpp 3gp;
@@ -69,6 +70,7 @@ types {
     video/mpeg                            mpeg mpg;
     video/quicktime                       mov;
     video/x-flv                           flv;
+    video/x-m4v                           m4v;
     video/x-mng                           mng;
     video/x-ms-asf                        asx asf;
     video/x-ms-wmv                        wmv;
index 1140d91743adbae3ff9adba15ff3f5569788934f..a6752123aa9be042ade99f5e625a75292d187109 100644 (file)
@@ -1882,7 +1882,7 @@ ngx_http_mp4_update_stts_atom(ngx_http_mp4_file_t *mp4,
     }
 
     entries = trak->time_to_sample_entries;
-    start_time = mp4->start * trak->timescale / 1000;
+    start_time = (uint64_t) mp4->start * trak->timescale / 1000;
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
                    "time-to-sample start_time:%uL", start_time);