Revision 55619690

View differences:

libavcodec/lclenc.c
54 54

  
55 55
    AVCodecContext *avctx;
56 56
    AVFrame pic;
57
    PutBitContext pb;
58 57

  
59 58
    // Image type
60 59
    int imgtype;
......
62 61
    int compression;
63 62
    // Flags
64 63
    int flags;
65
    // Decompressed data size
66
    unsigned int decomp_size;
67
    // Maximum compressed data size
68
    unsigned int max_comp_size;
69
    // Compression buffer
70
    unsigned char* comp_buf;
71 64
    z_stream zstream;
72 65
} LclEncContext;
73 66

  
......
142 135
    switch(avctx->pix_fmt){
143 136
        case PIX_FMT_BGR24:
144 137
            c->imgtype = IMGTYPE_RGB24;
145
            c->decomp_size = avctx->width * avctx->height * 3;
146 138
            avctx->bits_per_coded_sample= 24;
147 139
            break;
148 140
        default:
......
182 174
    LclEncContext *c = avctx->priv_data;
183 175

  
184 176
    av_freep(&avctx->extradata);
185
    av_freep(&c->comp_buf);
186 177
    deflateEnd(&c->zstream);
187 178

  
188 179
    return 0;

Also available in: Unified diff