Revision 2f412421 libavformat/mov.c

View differences:

libavformat/mov.c
528 528
            dprintf(fc, "Specific MPEG4 header len=%d\n", len);
529 529
            if((uint64_t)len > (1<<30))
530 530
                return -1;
531
            av_free(st->codec->extradata);
531 532
            st->codec->extradata = av_mallocz(len + FF_INPUT_BUFFER_PADDING_SIZE);
532 533
            if (!st->codec->extradata)
533 534
                return AVERROR(ENOMEM);

Also available in: Unified diff