OSDN Git Service

Fix a major memory leak introduced in Nyx's bframe patch.
authorsaintdev <saintdev@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 17 Apr 2007 02:41:43 +0000 (02:41 +0000)
committersaintdev <saintdev@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 17 Apr 2007 02:41:43 +0000 (02:41 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@519 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx264.c

index e1961b5..e680b36 100644 (file)
@@ -303,13 +303,6 @@ int encx264Work( hb_work_object_t * w, hb_buffer_t ** buf_in,
            hb_fifo_push(w->fifo_in, hb_buffer_init(0));
        }
     }
-  
-    /* Should be way too large */
-    buf        = hb_buffer_init( 3 * job->width * job->height / 2 );
-    buf->size  = 0;
-    buf->start = in->start;
-    buf->stop  = in->stop;
-    buf->key   = 0;
 
     if (i_nal)
     {