From 177bb4bf50d762fcc1ace3e357a2a2bba54744ee Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 11 Feb 2012 20:37:41 +0100 Subject: cljr: set the properties of the coded_frame, not input frame. --- libavcodec/cljr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/cljr.c') diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c index cf307bb06a..a3bb66c500 100644 --- a/libavcodec/cljr.c +++ b/libavcodec/cljr.c @@ -135,8 +135,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, AVFrame *p = data; int x, y; - p->pict_type = AV_PICTURE_TYPE_I; - p->key_frame = 1; + avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; + avctx->coded_frame->key_frame = 1; init_put_bits(&pb, buf, buf_size / 8); -- cgit v1.2.3