git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avcodec/tiff_common: allow count = 0 in ff_tadd_bytes_metadata()
[ffmpeg.git]
/
libavcodec
/
tiff_common.c
diff --git
a/libavcodec/tiff_common.c
b/libavcodec/tiff_common.c
index
6a10d71
..
ce91219
100644
(file)
--- a/
libavcodec/tiff_common.c
+++ b/
libavcodec/tiff_common.c
@@
-219,7
+219,7
@@
int ff_tadd_bytes_metadata(int count, const char *name, const char *sep,
char *ap;
int i;
char *ap;
int i;
- if (count >= INT_MAX / sizeof(int8_t) || count <
=
0)
+ if (count >= INT_MAX / sizeof(int8_t) || count < 0)
return AVERROR_INVALIDDATA;
if (bytestream2_get_bytes_left(gb) < count * sizeof(int8_t))
return AVERROR_INVALIDDATA;
return AVERROR_INVALIDDATA;
if (bytestream2_get_bytes_left(gb) < count * sizeof(int8_t))
return AVERROR_INVALIDDATA;