Mercurial > mplayer.hg
diff libvo/jpeg_enc.c @ 9976:5843993013a8
fixes to the zr driver (uninit->reinit) by Stephan Bain <sjbain@akamail.com>
author | rik |
---|---|
date | Thu, 24 Apr 2003 17:17:57 +0000 |
parents | 665974fce630 |
children | e0b5cd99f82e |
line wrap: on
line diff
--- a/libvo/jpeg_enc.c Thu Apr 24 17:04:20 2003 +0000 +++ b/libvo/jpeg_enc.c Thu Apr 24 17:17:57 2003 +0000 @@ -297,6 +297,7 @@ if (j == NULL) return NULL; j->s = av_malloc(sizeof(MpegEncContext)); + memset(j->s,0x00,sizeof(MpegEncContext)); if (j->s == NULL) { av_free(j); return NULL; @@ -314,6 +315,7 @@ j->s->height = h; j->s->qscale = q; + j->s->mjpeg_data_only_frames = 0; j->s->out_format = FMT_MJPEG; j->s->intra_only = 1; j->s->encoding = 1;