summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-01-08 18:44:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-08 18:44:36 +0000
commit303aebf97a1537185aa47f262eb9d756b0e315a7 (patch)
tree3e211c91a31e543c4a63794eda54cc2db6d57081 /libavcodec
parent967be700506dce69b69aaa5c479b51db45a665f2 (diff)
uninitalized variables fix by (Gildas Bazin <gbazin at altern dot org>)
and some related cleanup by me Originally committed as revision 2677 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 5d88e33e77..720165bf92 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -1737,6 +1737,7 @@ static int mpeg_decode_init(AVCodecContext *avctx)
{
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 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
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 @@ static int vcr2_init_sequence(AVCodecContext *avctx)
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