[nginx] svn commit: r4821 - trunk/src/http/modules

mdounin at mdounin.ru mdounin at mdounin.ru
Fri Aug 17 11:02:37 UTC 2012


Author: mdounin
Date: 2012-08-17 11:02:35 +0000 (Fri, 17 Aug 2012)
New Revision: 4821
URL: http://trac.nginx.org/nginx/changeset/4821/nginx

Log:
Mp4: removed restriction to avc1/mp4a formats (ticket #194).


Modified:
   trunk/src/http/modules/ngx_http_mp4_module.c

Modified: trunk/src/http/modules/ngx_http_mp4_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_mp4_module.c	2012-08-17 05:21:28 UTC (rev 4820)
+++ trunk/src/http/modules/ngx_http_mp4_module.c	2012-08-17 11:02:35 UTC (rev 4821)
@@ -1842,14 +1842,6 @@
                    ngx_mp4_get_32value(stsd_atom->entries),
                    4, stsd_atom->media_name);
 
-    /* supported media format: "avc1" (H.264) and "mp4a" (MPEG-4/AAC) */
-
-    if (ngx_strncmp(stsd_atom->media_name, "avc1", 4) != 0
-        && ngx_strncmp(stsd_atom->media_name, "mp4a", 4) != 0)
-    {
-        return NGX_DECLINED;
-    }
-
     trak = ngx_mp4_last_trak(mp4);
 
     atom = &trak->stsd_atom_buf;



More information about the nginx-devel mailing list