Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-14 23:23:32 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-03-14 23:58:28 +0300
commit53239e50ed366f9c12ef7531e63c5c0693fed328 (patch)
treeadff02ce641f8b5ff3c16d7d2dbe7a1c73847ff3 /libavformat/mov.c
parent0746f5035e7ba5573add8bcf8c51e3307cf913f0 (diff)
avformat/mov: Use sizeof(filename) instead of a literal number
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 21a53dd08dce7cc5b3fdf9c4826b4b74d8300ea0) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9a52eb0a28..d0d28bd081 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2342,9 +2342,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;