From 394940b23ca0ca708eabc48f1b69008ad2abee4d Mon Sep 17 00:00:00 2001 From: lorenm Date: Mon, 13 Feb 2006 07:00:37 +0000 Subject: lavc exposes the reconstructed picture, so no need to decode it again git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17615 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_uspp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf_uspp.c b/libmpcodecs/vf_uspp.c index fab6ca47ae..80f25e181f 100644 --- a/libmpcodecs/vf_uspp.c +++ b/libmpcodecs/vf_uspp.c @@ -188,7 +188,7 @@ static void filter(struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int ds 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 -- cgit v1.2.3