summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-01-14 19:25:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-14 19:25:05 +0000
commitaaa1e4cd48968131fa02d470f61a7aef7ddc7eea (patch)
treede32b08f3ae78901dc78fa5666799db23f6e402c /libavcodec/huffyuv.c
parent77b71ddc11cef98fce54e56dc7a7d26c213a6b6d (diff)
10l
Originally committed as revision 1460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r--libavcodec/huffyuv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index bb2f83cee0..31801a32d5 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -1,7 +1,7 @@
/*
* huffyuv codec for libavcodec
*
- * Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
+ * Copyright (c) 2002-2003 Michael Niedermayer <michaelni@gmx.at>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -461,8 +461,6 @@ static int encode_init(AVCodecContext *avctx)
s->version=2;
avctx->coded_frame= &s->picture;
- s->picture.pict_type= FF_I_TYPE;
- s->picture.key_frame= 1;
switch(avctx->pix_fmt){
case PIX_FMT_YUV420P:
@@ -933,6 +931,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
init_put_bits(&s->pb, buf, buf_size, NULL, NULL);
*p = *pict;
+ p->pict_type= FF_I_TYPE;
+ p->key_frame= 1;
if(avctx->pix_fmt == PIX_FMT_YUV422P || avctx->pix_fmt == PIX_FMT_YUV420P){
int lefty, leftu, leftv, y, cy;