Revision c34cb130 libavfilter/defaults.c

View differences:

libavfilter/defaults.c
57 57
            memcpy(picref->linesize, pic->linesize, sizeof(picref->linesize));
58 58
            return picref;
59 59
        }
60
    }
60
    }else
61
        pool = link->pool = av_mallocz(sizeof(AVFilterPool));
61 62

  
62 63
    // +2 is needed for swscaler, +16 to be SIMD-friendly
63 64
    if ((i=av_image_alloc(data, linesize, w, h, link->format, 16)) < 0)
......
71 72
    }
72 73
    memset(data[0], 128, i);
73 74

  
74
    picref->buf->priv= link;
75
    picref->buf->priv= pool;
75 76
    picref->buf->free= NULL;
76 77

  
77 78
    return picref;

Also available in: Unified diff