summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-04-04 01:30:14 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-04-04 23:21:14 +0200
commit61dcaf5fb74d11209683da1a98aa324df54147ed (patch)
treed1532c9dea0dda220f4df4a3c70cea67dabbd327 /libavformat
parente61767c40a978f0d1c41c848c134d537b5494cb3 (diff)
lavf, lavfi: Remove uses of sizeof(char).
The C standard requires sizeof(char) == 1.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/webmdashenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index d05b265330..7847659c63 100644
--- a/libavformat/webmdashenc.c
+++ b/libavformat/webmdashenc.c
@@ -439,7 +439,7 @@ static int write_adaptation_set(AVFormatContext *s, int as_index)
static int to_integer(char *p, int len)
{
int ret;
- char *q = av_malloc(sizeof(char) * len);
+ char *q = av_malloc(len);
if (!q)
return AVERROR(ENOMEM);
av_strlcpy(q, p, len);