summaryrefslogtreecommitdiff
path: root/libavcodec/cljr.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-02-11 20:37:41 +0100
committerAnton Khirnov <anton@khirnov.net>2012-02-12 08:05:38 +0100
commit177bb4bf50d762fcc1ace3e357a2a2bba54744ee (patch)
tree2c2fb3fdab9b8c07b1b7d400391441a87122a9d4 /libavcodec/cljr.c
parent89829242a633789fa614ec7ca9ffb912b5f02765 (diff)
cljr: set the properties of the coded_frame, not input frame.
Diffstat (limited to 'libavcodec/cljr.c')
-rw-r--r--libavcodec/cljr.c4
1 files changed, 2 insertions, 2 deletions
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);