cljr: set the properties of the coded_frame, not input frame.

This commit is contained in:
Anton Khirnov
2012-02-12 08:05:38 +01:00
parent 89829242a6
commit 177bb4bf50
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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);