Browse code

lclenc: remove unused code

Signed-off-by: Paul B Mahol <onemda@gmail.com>

Paul B Mahol authored on 2013/07/27 06:45:10
Showing 1 changed files
... ...
@@ -56,7 +56,6 @@
56 56
 typedef struct LclEncContext {
57 57
 
58 58
     AVCodecContext *avctx;
59
-    AVFrame pic;
60 59
 
61 60
     // Image type
62 61
     int imgtype;
... ...
@@ -73,10 +72,9 @@ typedef struct LclEncContext {
73 73
  *
74 74
  */
75 75
 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
76
-                        const AVFrame *pict, int *got_packet)
76
+                        const AVFrame *p, int *got_packet)
77 77
 {
78 78
     LclEncContext *c = avctx->priv_data;
79
-    AVFrame * const p = &c->pic;
80 79
     int i, ret;
81 80
     int zret; // Zlib return code
82 81
     int max_size = deflateBound(&c->zstream, avctx->width * avctx->height * 3);
... ...
@@ -84,10 +82,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
84 84
     if ((ret = ff_alloc_packet2(avctx, pkt, max_size)) < 0)
85 85
         return ret;
86 86
 
87
-    *p = *pict;
88
-    p->pict_type= AV_PICTURE_TYPE_I;
89
-    p->key_frame= 1;
90
-
91 87
     if(avctx->pix_fmt != AV_PIX_FMT_BGR24){
92 88
         av_log(avctx, AV_LOG_ERROR, "Format not supported!\n");
93 89
         return -1;
... ...
@@ -140,7 +134,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
140 140
     avctx->extradata = av_mallocz(8 + FF_INPUT_BUFFER_PADDING_SIZE);
141 141
     if (!avctx->extradata)
142 142
         return AVERROR(ENOMEM);
143
-    avctx->coded_frame= &c->pic;
144 143
 
145 144
     c->compression = avctx->compression_level == FF_COMPRESSION_DEFAULT ?
146 145
                             COMP_ZLIB_NORMAL :