--- x264.c	2005-02-24 21:37:41.000000000 -0800
+++ x264.c.new	2005-02-24 21:37:12.000000000 -0800
@@ -361,6 +361,7 @@
 {
     encoder_sys_t *p_sys = p_enc->p_sys;
     x264_picture_t  pic;
+    x264_picture_t  pic_out;
     int        i_nal;
     x264_nal_t *nal;
     block_t *p_block;
@@ -377,7 +378,7 @@
         pic.img.i_stride[i] = p_pict->p[i].i_pitch;
     }
 
-    x264_encoder_encode( p_sys->h, &nal, &i_nal, &pic );
+    x264_encoder_encode( p_sys->h, &nal, &i_nal, &pic, &pic_out );
     for( i = 0, i_out = 0; i < i_nal; i++ )
     {
         int i_size = p_sys->i_buffer - i_out;
