changeset 17614:673a0ce6cfb6

lavc exposes the reconstructed picture, so no need to decode it again
author lorenm
date Mon, 13 Feb 2006 07:00:37 +0000
parents 03a832d43fe5
children 363d23eb55d3
files libmpcodecs/vf_uspp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_uspp.c	Sun Feb 12 17:51:38 2006 +0000
+++ b/libmpcodecs/vf_uspp.c	Mon Feb 13 07:00:37 2006 +0000
@@ -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