[MPlayer-cvslog] CVS: main/libmpcodecs vf_uspp.c,1.5,1.6

Loren Merritt CVS syncmail at mplayerhq.hu
Mon Feb 13 08:00:39 CET 2006


CVS change done by Loren Merritt CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv21050

Modified Files:
	vf_uspp.c 
Log Message:
lavc exposes the reconstructed picture, so no need to decode it again



Index: vf_uspp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_uspp.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vf_uspp.c	31 Jan 2006 23:36:12 -0000	1.5
+++ vf_uspp.c	13 Feb 2006 07:00:37 -0000	1.6
@@ -188,7 +188,7 @@
         p->frame->data[2]= p->src[2] + x1/2 + y1/2 * p->frame->linesize[2];
 
         out_size = avcodec_encode_video(p->avctx_enc[i], p->outbuf, p->outbuf_size, p->frame);
-        avcodec_decode_video(p->avctx_dec[i], p->frame_dec, &got_picture, p->outbuf, out_size);
+        p->frame_dec = p->avctx_enc[i]->coded_frame;
 
         offset= (BLOCK-x1) + (BLOCK-y1)*p->frame_dec->linesize[0];
         //FIXME optimize




More information about the MPlayer-cvslog mailing list