aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-26 21:45:10 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-31 20:01:43 +0000
commit69fe25cdca7c68b037984fd5d9704c237055ea2a (patch)
tree0ddd93792803596ba617c84adb1e33f5d0290ed2
parentfe3755124953d2c5351f8023a404e71d0f0bbeb5 (diff)
downloadffmpeg-69fe25cdca7c68b037984fd5d9704c237055ea2a.tar.gz
lclenc: remove unused code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/lclenc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index 263e66bdd0..07f4d39fce 100644
--- a/libavcodec/lclenc.c
+++ b/libavcodec/lclenc.c
@@ -56,7 +56,6 @@
typedef struct LclEncContext {
AVCodecContext *avctx;
- AVFrame pic;
// Image type
int imgtype;
@@ -73,10 +72,9 @@ typedef struct LclEncContext {
*
*/
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
- const AVFrame *pict, int *got_packet)
+ const AVFrame *p, int *got_packet)
{
LclEncContext *c = avctx->priv_data;
- AVFrame * const p = &c->pic;
int i, ret;
int zret; // Zlib return code
int max_size = deflateBound(&c->zstream, avctx->width * avctx->height * 3);
@@ -84,10 +82,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
if ((ret = ff_alloc_packet2(avctx, pkt, max_size)) < 0)
return ret;
- *p = *pict;
- p->pict_type= AV_PICTURE_TYPE_I;
- p->key_frame= 1;
-
if(avctx->pix_fmt != AV_PIX_FMT_BGR24){
av_log(avctx, AV_LOG_ERROR, "Format not supported!\n");
return -1;
@@ -140,7 +134,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
avctx->extradata = av_mallocz(8 + FF_INPUT_BUFFER_PADDING_SIZE);
if (!avctx->extradata)
return AVERROR(ENOMEM);
- avctx->coded_frame= &c->pic;
c->compression = avctx->compression_level == FF_COMPRESSION_DEFAULT ?
COMP_ZLIB_NORMAL :