# HG changeset patch # User michael # Date 1073587476 0 # Node ID f716b8f47d98ffcd19b4c24b619ab54dfb41b0c2 # Parent c3579468d42c7e8113d5f4744b2c34caf12a6ecb uninitalized variables fix by (Gildas Bazin ) and some related cleanup by me diff -r c3579468d42c -r f716b8f47d98 mpeg12.c --- a/mpeg12.c Thu Jan 08 18:24:35 2004 +0000 +++ b/mpeg12.c Thu Jan 08 18:44:36 2004 +0000 @@ -1737,6 +1737,7 @@ { Mpeg1Context *s = avctx->priv_data; + s->mpeg_enc_ctx.avctx= avctx; s->mpeg_enc_ctx.flags= avctx->flags; common_init(&s->mpeg_enc_ctx); init_vlcs(); @@ -2372,7 +2373,6 @@ s->width = width; s->height = height; avctx->has_b_frames= 1; - s->avctx = avctx; avctx->width = width; avctx->height = height; av_reduce( @@ -2474,7 +2474,6 @@ s->height = avctx->height; avctx->has_b_frames= 0; //true? s->low_delay= 1; - s->avctx = avctx; //get_format() or set_video(width,height,aspect,pix_fmt); //until then pix_fmt may be changed right after codec init