diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-14 21:23:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-29 03:34:23 +0200 |
commit | e168db3eaef0ee19af3bc5ce748b8d423e1d6135 (patch) | |
tree | 13b425c8833cd9ece8c87e8d960c9e149222c9bf | |
parent | b9b56ded7dd4987fc3395bc58320c42493c41a62 (diff) | |
download | ffmpeg-e168db3eaef0ee19af3bc5ce748b8d423e1d6135.tar.gz |
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>
-rw-r--r-- | libavformat/mov.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index c8b3f75eac..ab09665002 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2392,9 +2392,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; |