Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 11 years ago
parent
commit
21a53dd08d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/mov.c

+ 2
- 2
libavformat/mov.c View File

@@ -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;


Loading…
Cancel
Save