# HG changeset patch # User michaelni # Date 1042572305 0 # Node ID a32feda30b01be52b1c7756ca62f2a645ae40292 # Parent c331a07c0be26a94fe94e731cc2638f258952b37 10l diff -r c331a07c0be2 -r a32feda30b01 huffyuv.c --- a/huffyuv.c Tue Jan 14 15:30:42 2003 +0000 +++ b/huffyuv.c Tue Jan 14 19:25:05 2003 +0000 @@ -1,7 +1,7 @@ /* * huffyuv codec for libavcodec * - * Copyright (c) 2002 Michael Niedermayer + * Copyright (c) 2002-2003 Michael Niedermayer * * 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 @@ 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 @@ 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;