[PATCH] Mp4: use trak->smhd_size in ngx_http_mp4_read_smhd_atom()

portl4t.cn at gmail.com portl4t.cn at gmail.com
Sat Aug 16 14:00:48 UTC 2014


# HG changeset patch
# User Gang Li <portl4t.cn at gmail.com>
# Date 1408195574 -28800
#      Sat Aug 16 21:26:14 2014 +0800
# Node ID 083b9aeb29bce7b18171cd6df5bcd5f34b9e2f1b
# Parent  79553cb7774753f9c40a6fa6744b0e0611e41908
Mp4: use trak->smhd_size in ngx_http_mp4_read_smhd_atom()

diff -r 79553cb77747 -r 083b9aeb29bc src/http/modules/ngx_http_mp4_module.c
--- a/src/http/modules/ngx_http_mp4_module.c Fri Aug 15 14:09:29 2014 +0400
+++ b/src/http/modules/ngx_http_mp4_module.c Sat Aug 16 21:26:14 2014 +0800
@@ -1840,7 +1840,7 @@
     atom->pos = atom_header;
     atom->last = atom_header + atom_size;
 
-    trak->vmhd_size += atom_size;
+    trak->smhd_size += atom_size;
     trak->out[NGX_HTTP_MP4_SMHD_ATOM].buf = atom;
 
     ngx_mp4_atom_next(mp4, atom_data_size);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140816/2ab7cbc3/attachment.html>


More information about the nginx-devel mailing list