diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-02-11 20:37:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-02-12 08:05:38 +0100 |
commit | 177bb4bf50d762fcc1ace3e357a2a2bba54744ee (patch) | |
tree | 2c2fb3fdab9b8c07b1b7d400391441a87122a9d4 /libavcodec/cljr.c | |
parent | 89829242a633789fa614ec7ca9ffb912b5f02765 (diff) | |
download | ffmpeg-177bb4bf50d762fcc1ace3e357a2a2bba54744ee.tar.gz |
cljr: set the properties of the coded_frame, not input frame.
Diffstat (limited to 'libavcodec/cljr.c')
-rw-r--r-- | libavcodec/cljr.c | 4 |
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); |