Ticket #2527: patchvp3.diff

File patchvp3.diff, 761 bytes (added by cehoyos, 4 years ago)
  • libavcodec/vp3.c

    diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
    index 5bf2fee..ddfb49f 100644
    a b static av_cold int allocate_tables(AVCodecContext *avctx) 
    16351635    s->superblock_coding = av_malloc(s->superblock_count); 
    16361636    s->all_fragments = av_malloc(s->fragment_count * sizeof(Vp3Fragment)); 
    16371637    s->coded_fragment_list[0] = av_malloc(s->fragment_count * sizeof(int)); 
    1638     s->dct_tokens_base = av_malloc(64*s->fragment_count * sizeof(*s->dct_tokens_base)); 
     1638    s->dct_tokens_base = av_mallocz(64*s->fragment_count * sizeof(*s->dct_tokens_base)); 
    16391639    s->motion_val[0] = av_malloc(y_fragment_count * sizeof(*s->motion_val[0])); 
    16401640    s->motion_val[1] = av_malloc(c_fragment_count * sizeof(*s->motion_val[1])); 
    16411641