[FFmpeg-cvslog] avformat/mov: Use sizeof(filename) instead of a literal number
Michael Niedermayer
git at videolan.org
Sat Mar 21 02:30:16 CET 2015
ffmpeg | branch: release/2.5 | Michael Niedermayer <michaelni at gmx.at> | Sat Mar 14 21:23:32 2015 +0100| [50fd06ea32e0e2fa994484ebeb6d81773130e120] | committer: Michael Niedermayer
avformat/mov: Use sizeof(filename) instead of a literal number
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 21a53dd08dce7cc5b3fdf9c4826b4b74d8300ea0)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50fd06ea32e0e2fa994484ebeb6d81773130e120
---
libavformat/mov.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 7455e3b..39f30e4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2486,9 +2486,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;
More information about the ffmpeg-cvslog
mailing list