Mercurial > libavcodec.hg
comparison lcldec.c @ 5296:01e09790f4e6 libavcodec
remove useless LclDecContext.avctx field
author | mru |
---|---|
date | Thu, 12 Jul 2007 22:55:34 +0000 |
parents | e21873a1c00b |
children | fc46b3f5de1a |
comparison
equal
deleted
inserted
replaced
5295:f244b88bb905 | 5296:01e09790f4e6 |
---|---|
51 | 51 |
52 /* | 52 /* |
53 * Decoder context | 53 * Decoder context |
54 */ | 54 */ |
55 typedef struct LclDecContext { | 55 typedef struct LclDecContext { |
56 | |
57 AVCodecContext *avctx; | |
58 AVFrame pic; | 56 AVFrame pic; |
59 | 57 |
60 // Image type | 58 // Image type |
61 int imgtype; | 59 int imgtype; |
62 // Compression type | 60 // Compression type |
522 unsigned int basesize = avctx->width * avctx->height; | 520 unsigned int basesize = avctx->width * avctx->height; |
523 unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3); | 521 unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3); |
524 unsigned int max_decomp_size; | 522 unsigned int max_decomp_size; |
525 int zret; // Zlib return code | 523 int zret; // Zlib return code |
526 | 524 |
527 c->avctx = avctx; | |
528 | |
529 c->pic.data[0] = NULL; | 525 c->pic.data[0] = NULL; |
530 | 526 |
531 #ifdef CONFIG_ZLIB | 527 #ifdef CONFIG_ZLIB |
532 // Needed if zlib unused or init aborted before inflateInit | 528 // Needed if zlib unused or init aborted before inflateInit |
533 memset(&(c->zstream), 0, sizeof(z_stream)); | 529 memset(&(c->zstream), 0, sizeof(z_stream)); |