Revision e23dd95d libavcodec/targaenc.c

View differences:

libavcodec/targaenc.c
76 76
                              unsigned char *outbuf,
77 77
                              int buf_size, void *data){
78 78
    AVFrame *p = data;
79
    int bpp, picsize, datasize;
79
    int bpp, picsize, datasize = -1;
80 80
    uint8_t *out;
81 81

  
82 82
    if(avctx->width > 0xffff || avctx->height > 0xffff) {
......
120 120
    out = outbuf + 18;  /* skip past the header we just output */
121 121

  
122 122
    /* try RLE compression */
123
    if (avctx->coder_type != FF_CODER_TYPE_RAW)
123 124
    datasize = targa_encode_rle(out, picsize, p, bpp, avctx->width, avctx->height);
124 125

  
125 126
    /* if that worked well, mark the picture as RLE compressed */

Also available in: Unified diff