summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_mp4_module.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2016-03-31 02:33:53 +0300
committerSergey Kandaurov <pluknet@nginx.com>2016-03-31 02:33:53 +0300
commitc622ff3b44ff57663ccd67f3830a6a84d20acd8f (patch)
tree5bd2ae274324d29ee4ba5cdfac0cbfb3d9ddfa46 /src/http/modules/ngx_http_mp4_module.c
parent2e25f340b8848561a00993f88bdf1723b77fbabe (diff)
downloadnginx-c622ff3b44ff57663ccd67f3830a6a84d20acd8f.tar.gz
nginx-c622ff3b44ff57663ccd67f3830a6a84d20acd8f.tar.bz2
Fixed logging with variable field width.
Diffstat (limited to 'src/http/modules/ngx_http_mp4_module.c')
-rw-r--r--src/http/modules/ngx_http_mp4_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c
index 04bf9c1bc..6cb3ccfaa 100644
--- a/src/http/modules/ngx_http_mp4_module.c
+++ b/src/http/modules/ngx_http_mp4_module.c
@@ -913,7 +913,7 @@ ngx_http_mp4_read_atom(ngx_http_mp4_file_t *mp4,
ngx_log_debug4(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"mp4 atom: %*s @%O:%uL",
- 4, atom_name, mp4->offset, atom_size);
+ (size_t) 4, atom_name, mp4->offset, atom_size);
if (atom_size > (uint64_t) (NGX_MAX_OFF_T_VALUE - mp4->offset)
|| mp4->offset + (off_t) atom_size > end)
@@ -1958,7 +1958,7 @@ ngx_http_mp4_read_stsd_atom(ngx_http_mp4_file_t *mp4, uint64_t atom_data_size)
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"stsd entries:%uD, media:%*s",
ngx_mp4_get_32value(stsd_atom->entries),
- 4, stsd_atom->media_name);
+ (size_t) 4, stsd_atom->media_name);
trak = ngx_mp4_last_trak(mp4);