]> granicus.if.org Git - libx264/commitdiff
Make reconstructed frame available to caller.
authorMåns Rullgård <mru@mru.ath.cx>
Thu, 31 Mar 2005 21:20:41 +0000 (21:20 +0000)
committerMåns Rullgård <mru@mru.ath.cx>
Thu, 31 Mar 2005 21:20:41 +0000 (21:20 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@184 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index 391e22cd7c831c7f971ad343c995e2f9cd97b3b1..ee5e4575ec0ebfc7da3a5ed76683d31f5b2196e5 100644 (file)
@@ -1304,6 +1304,12 @@ do_encode:
         pic_out->i_type = X264_TYPE_B;
     pic_out->i_pts = h->fenc->i_pts;
 
+    pic_out->img.i_plane = h->fdec->i_plane;
+    for(i = 0; i < 4; i++){
+        pic_out->img.i_stride[i] = h->fdec->i_stride[i];
+        pic_out->img.plane[i] = h->fdec->plane[i];
+    }
+
     /* ---------------------- Update encoder state ------------------------- */
     /* update cabac */
     if( h->param.b_cabac )