mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
Merge commit 'b698542ad83284fbb8c22404e3cafeb2dd739d38'
* commit 'b698542ad83284fbb8c22404e3cafeb2dd739d38': mov: Don't allocate arrays with av_malloc that will be realloced Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a7630e3755
@ -2653,7 +2653,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
if (!sc->ctts_count && sc->sample_count)
|
||||
{
|
||||
/* Complement ctts table if moov atom doesn't have ctts atom. */
|
||||
ctts_data = av_malloc(sizeof(*sc->ctts_data));
|
||||
ctts_data = av_realloc(NULL, sizeof(*sc->ctts_data));
|
||||
if (!ctts_data)
|
||||
return AVERROR(ENOMEM);
|
||||
sc->ctts_data = ctts_data;
|
||||
|
Loading…
Reference in New Issue
Block a user