summaryrefslogtreecommitdiff
path: root/libavformat/takdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-05 18:52:29 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-08 00:42:48 +0100
commite38eaf47491a864b2180d1ade87ed0ef39dd6d34 (patch)
treeeaf47cc5cd738a86e4e0f05f4657c7ea7114dbca /libavformat/takdec.c
parentb09ea67b40e342f5e4183e9ebc0c14801ecd218c (diff)
avformat/utils: Make ff_data_to_hex() zero-terminate the string
Most callers want it that way anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/takdec.c')
-rw-r--r--libavformat/takdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/takdec.c b/libavformat/takdec.c
index 6bb26683b4..bb256e1190 100644
--- a/libavformat/takdec.c
+++ b/libavformat/takdec.c
@@ -122,7 +122,6 @@ static int tak_read_header(AVFormatContext *s)
}
ff_data_to_hex(md5_hex, md5, sizeof(md5), 1);
- md5_hex[2 * sizeof(md5)] = '\0';
av_log(s, AV_LOG_VERBOSE, "MD5=%s\n", md5_hex);
break;
}