[MPlayer-dev-eng] [PATCH] raw output bugfix

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jan 2 18:05:08 CET 2005


Hi,
> >Patch fixes raw output for mencoder (-ovc raw).
> >Currently if the internal bitmap was extended by the codec (say, to 
> >even 16 boundary), raw output is misaligned as it writes the padding 
> >too.
> 
> Found a missing malloc. Updated patch below.

This certainly is not acceptable (too slow and too much code). Try if the attached patch works.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libmpcodecs/ve_raw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_raw.c,v
retrieving revision 1.2
diff -u -r1.2 ve_raw.c
--- libmpcodecs/ve_raw.c	24 Mar 2004 15:16:36 -0000	1.2
+++ libmpcodecs/ve_raw.c	2 Jan 2005 17:04:58 -0000
@@ -128,6 +128,7 @@
     vf->control = control;
     vf->query_format = query_format;
     vf->put_image = put_image;
+    vf->default_caps = 0;
     vf->priv = malloc(sizeof(struct vf_priv_s));
     memset(vf->priv, 0, sizeof(struct vf_priv_s));
     vf->priv->mux = (muxer_stream_t*)args;


More information about the MPlayer-dev-eng mailing list