Revision b4800b8b

View differences:

libavformat/mxfdec.c
364 364

  
365 365
static int mxf_add_metadata_set(MXFContext *mxf, void *metadata_set)
366 366
{
367
    if (mxf->metadata_sets_count+1 >= UINT_MAX / sizeof(*mxf->metadata_sets))
368
        return AVERROR(ENOMEM);
367 369
    mxf->metadata_sets = av_realloc(mxf->metadata_sets, (mxf->metadata_sets_count + 1) * sizeof(*mxf->metadata_sets));
368 370
    if (!mxf->metadata_sets)
369 371
        return -1;

Also available in: Unified diff