|
|
@ -1940,10 +1940,10 @@ static int mxf_compute_ptses_fake_index(MXFContext *mxf, MXFIndexTable *index_ta |
|
|
|
if (index_table->nb_ptses <= 0) |
|
|
|
if (index_table->nb_ptses <= 0) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
if (!(index_table->ptses = av_calloc(index_table->nb_ptses, sizeof(int64_t))) || |
|
|
|
if (!(index_table->ptses = av_malloc_array(index_table->nb_ptses, sizeof(int64_t))) || |
|
|
|
!(index_table->fake_index = av_calloc(index_table->nb_ptses, sizeof(AVIndexEntry))) || |
|
|
|
!(index_table->fake_index = av_calloc(index_table->nb_ptses, sizeof(AVIndexEntry))) || |
|
|
|
!(index_table->offsets = av_calloc(index_table->nb_ptses, sizeof(int8_t))) || |
|
|
|
!(index_table->offsets = av_malloc_array(index_table->nb_ptses, sizeof(int8_t))) || |
|
|
|
!(flags = av_calloc(index_table->nb_ptses, sizeof(uint8_t)))) { |
|
|
|
!(flags = av_malloc_array(index_table->nb_ptses, sizeof(uint8_t)))) { |
|
|
|
av_freep(&index_table->ptses); |
|
|
|
av_freep(&index_table->ptses); |
|
|
|
av_freep(&index_table->fake_index); |
|
|
|
av_freep(&index_table->fake_index); |
|
|
|
av_freep(&index_table->offsets); |
|
|
|
av_freep(&index_table->offsets); |
|
|
|