aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-31 22:19:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-01 00:48:48 +0200
commit59a70422b1bba8b413c0f13d2489f3fac41e6413 (patch)
tree4f74cf62e94c6d23539db2bce34003bf882994b0 /libavcodec
parentac1077ab5010fef7f77ea64089f73901825a1b43 (diff)
downloadffmpeg-59a70422b1bba8b413c0f13d2489f3fac41e6413.tar.gz
avcodec/cljr: remove coded_frame code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cljr.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
index 7e0773b6be..9b2bf60dfa 100644
--- a/libavcodec/cljr.c
+++ b/libavcodec/cljr.c
@@ -102,21 +102,6 @@ typedef struct CLJRContext {
int dither_type;
} CLJRContext;
-static av_cold int encode_init(AVCodecContext *avctx)
-{
- avctx->coded_frame = av_frame_alloc();
- if (!avctx->coded_frame)
- return AVERROR(ENOMEM);
-
- return 0;
-}
-
-static av_cold int encode_close(AVCodecContext *avctx)
-{
- av_frame_free(&avctx->coded_frame);
- return 0;
-}
-
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *p, int *got_packet)
{
@@ -133,9 +118,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
if ((ret = ff_alloc_packet2(avctx, pkt, 32*avctx->height*avctx->width/4)) < 0)
return ret;
- avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
- avctx->coded_frame->key_frame = 1;
-
init_put_bits(&pb, pkt->data, pkt->size);
for (y = 0; y < avctx->height; y++) {
@@ -186,9 +168,7 @@ AVCodec ff_cljr_encoder = {
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_CLJR,
.priv_data_size = sizeof(CLJRContext),
- .init = encode_init,
.encode2 = encode_frame,
- .close = encode_close,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
AV_PIX_FMT_NONE },
.priv_class = &cljr_class,