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:
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index ad0b0bae5a..1f9a029556 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -208,8 +208,9 @@ static char *doubles2str(double *dp, int count, const char *sep)
{
int i;
char *ap, *ap0;
- int component_len = 15 + strlen(sep);
+ int component_len;
if (!sep) sep = ", ";
+ component_len = 15 + strlen(sep);
ap = av_malloc(component_len * count);
if (!ap)
return NULL;