Revision 32282b50

View differences:

libavcodec/lclenc.c
130 130
    // Will be user settable someday
131 131
    c->compression = 6;
132 132
    c->flags = 0;
133

  
134
    switch(avctx->pix_fmt){
135
        case PIX_FMT_BGR24:
136
            c->imgtype = IMGTYPE_RGB24;
137
            avctx->bits_per_coded_sample= 24;
138
            break;
139
        default:
140
            av_log(avctx, AV_LOG_ERROR, "Input pixel format %s not supported\n", avcodec_get_pix_fmt_name(avctx->pix_fmt));
141
            return -1;
142
    }
133
    c->imgtype = IMGTYPE_RGB24;
134
    avctx->bits_per_coded_sample= 24;
143 135

  
144 136
    avctx->extradata[0]= 4;
145 137
    avctx->extradata[1]= 0;
......
186 178
    encode_init,
187 179
    encode_frame,
188 180
    encode_end,
181
    .pix_fmts = (const enum PixelFormat[]) { PIX_FMT_BGR24, PIX_FMT_NONE },
189 182
    .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"),
190 183
};

Also available in: Unified diff