OSDN Git Service

clean up crufty legacy code
[handbrake-jp/handbrake-jp-git.git] / libhb / encx264.c
index 2a3c2b6..83d3eda 100644 (file)
@@ -169,13 +169,6 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
     }
 
     param.i_log_level  = X264_LOG_INFO;
-    if( job->h264_level )
-    {
-        param.b_cabac     = 0;
-        param.i_level_idc = job->h264_level;
-        hb_log( "encx264: encoding at level %i",
-                param.i_level_idc );
-    }
     
     /*
                This section passes the string x264opts to libx264 for parsing into
@@ -426,16 +419,6 @@ static hb_buffer_t *nal_encode( hb_work_object_t *w, x264_picture_t *pic_out,
             continue;
         }
 
-        if( job->mux & HB_MUX_AVI )
-        {
-            if( nal[i].i_ref_idc == NAL_PRIORITY_HIGHEST )
-            {
-                buf->frametype = HB_FRAME_KEY;
-            }
-            buf->size += size;
-            continue;
-        }
-
         /* H.264 in .mp4 or .mkv */
         switch( nal[i].i_type )
         {