Commit 21a53dd0 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: Use sizeof(filename) instead of a literal number

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3814f92f
......@@ -2626,9 +2626,9 @@ static int mov_open_dref(AVIOContext **pb, const char *src, MOVDref *ref,
filename[src_path - src] = 0;
for (i = 1; i < ref->nlvl_from; i++)
av_strlcat(filename, "../", 1024);
av_strlcat(filename, "../", sizeof(filename));
av_strlcat(filename, ref->path + l + 1, 1024);
av_strlcat(filename, ref->path + l + 1, sizeof(filename));
if (!avio_open2(pb, filename, AVIO_FLAG_READ, int_cb, NULL))
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment