comparison lclenc.c @ 9744:bcd71ae6ea74 libavcodec

Cosmetics: fix indentation in lclenc.c
author reimar
date Sun, 31 May 2009 08:38:51 +0000
parents f36c5b72c4e3
children 2b2cf4039589
comparison
equal deleted inserted replaced
9743:f36c5b72c4e3 9744:bcd71ae6ea74
50 /* 50 /*
51 * Decoder context 51 * Decoder context
52 */ 52 */
53 typedef struct LclEncContext { 53 typedef struct LclEncContext {
54 54
55 AVCodecContext *avctx; 55 AVCodecContext *avctx;
56 AVFrame pic; 56 AVFrame pic;
57 PutBitContext pb; 57 PutBitContext pb;
58 58
59 // Image type 59 // Image type
60 int imgtype; 60 int imgtype;
61 // Compression type 61 // Compression type
173 if (zret != Z_OK) { 173 if (zret != Z_OK) {
174 av_log(avctx, AV_LOG_ERROR, "Deflate init error: %d\n", zret); 174 av_log(avctx, AV_LOG_ERROR, "Deflate init error: %d\n", zret);
175 return 1; 175 return 1;
176 } 176 }
177 177
178 /* Conservative upper bound taken from zlib v1.2.1 source */ 178 /* Conservative upper bound taken from zlib v1.2.1 source */
179 c->max_comp_size = c->decomp_size + ((c->decomp_size + 7) >> 3) + 179 c->max_comp_size = c->decomp_size + ((c->decomp_size + 7) >> 3) +
180 ((c->decomp_size + 63) >> 6) + 11; 180 ((c->decomp_size + 63) >> 6) + 11;
181 if ((c->comp_buf = av_malloc(c->max_comp_size)) == NULL) { 181 if ((c->comp_buf = av_malloc(c->max_comp_size)) == NULL) {
182 av_log(avctx, AV_LOG_ERROR, "Can't allocate compression buffer.\n"); 182 av_log(avctx, AV_LOG_ERROR, "Can't allocate compression buffer.\n");
183 return 1; 183 return 1;
184 } 184 }
185 185