Merge commit '6f4364aba9d70dc5fd9f1c88b9c03bf9ea893d40'
* commit '6f4364aba9d70dc5fd9f1c88b9c03bf9ea893d40': mov: Fix handling of zero-length metadata values Conflicts: libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1a86e29ff0
@ -379,7 +379,7 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
// worst-case requirement for output string in case of utf8 coded input
|
// worst-case requirement for output string in case of utf8 coded input
|
||||||
str_size_alloc = raw ? str_size + 1 : str_size * 2;
|
str_size_alloc = (raw ? str_size : str_size * 2) + 1;
|
||||||
str = av_malloc(str_size_alloc);
|
str = av_malloc(str_size_alloc);
|
||||||
if (!str)
|
if (!str)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user