Commit 8cf822b6 authored by reimar's avatar reimar

Remove now unused elements from LclEncContext


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19032 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b9eb5d3b
...@@ -54,7 +54,6 @@ typedef struct LclEncContext { ...@@ -54,7 +54,6 @@ typedef struct LclEncContext {
AVCodecContext *avctx; AVCodecContext *avctx;
AVFrame pic; AVFrame pic;
PutBitContext pb;
// Image type // Image type
int imgtype; int imgtype;
...@@ -62,12 +61,6 @@ typedef struct LclEncContext { ...@@ -62,12 +61,6 @@ typedef struct LclEncContext {
int compression; int compression;
// Flags // Flags
int flags; int flags;
// Decompressed data size
unsigned int decomp_size;
// Maximum compressed data size
unsigned int max_comp_size;
// Compression buffer
unsigned char* comp_buf;
z_stream zstream; z_stream zstream;
} LclEncContext; } LclEncContext;
...@@ -142,7 +135,6 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -142,7 +135,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
switch(avctx->pix_fmt){ switch(avctx->pix_fmt){
case PIX_FMT_BGR24: case PIX_FMT_BGR24:
c->imgtype = IMGTYPE_RGB24; c->imgtype = IMGTYPE_RGB24;
c->decomp_size = avctx->width * avctx->height * 3;
avctx->bits_per_coded_sample= 24; avctx->bits_per_coded_sample= 24;
break; break;
default: default:
...@@ -182,7 +174,6 @@ static av_cold int encode_end(AVCodecContext *avctx) ...@@ -182,7 +174,6 @@ static av_cold int encode_end(AVCodecContext *avctx)
LclEncContext *c = avctx->priv_data; LclEncContext *c = avctx->priv_data;
av_freep(&avctx->extradata); av_freep(&avctx->extradata);
av_freep(&c->comp_buf);
deflateEnd(&c->zstream); deflateEnd(&c->zstream);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment