[Mplayer-cvslog] CVS: main/libvo jpeg_enc.c,1.7,1.8
Rik Snel CVS
rik at mplayerhq.hu
Thu Aug 29 13:41:28 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv8883
Modified Files:
jpeg_enc.c
Log Message:
fixes a segfault which was introduced in this file by the new ratecontrol code
Index: jpeg_enc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/jpeg_enc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- jpeg_enc.c 11 Jul 2002 13:05:53 -0000 1.7
+++ jpeg_enc.c 29 Aug 2002 11:41:11 -0000 1.8
@@ -338,6 +338,9 @@
return NULL;
}
+ /* alloc bogus avctx to keep MPV_common_init from segfaulting */
+ j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
+
if (MPV_common_init(j->s) < 0) {
free(j->s);
free(j);
More information about the MPlayer-cvslog
mailing list