]> git.videolan.org Git - x264.git/commitdiff
skip deblocking and motion interpolation when using only I-frames
authorLoren Merritt <pengvado@videolan.org>
Sun, 15 Oct 2006 23:39:03 +0000 (23:39 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 15 Oct 2006 23:39:03 +0000 (23:39 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@593 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index 396f5bb3dfb70ac0de6abca456f02670fd799cbf..9fae325bd024c3d5d471997b0ac0040b3a27ea20 100644 (file)
@@ -1600,7 +1600,7 @@ do_encode:
     x264_ratecontrol_end( h, i_frame_size * 8 );
 
     /* handle references */
-    if( i_nal_ref_idc != NAL_PRIORITY_DISPOSABLE )
+    if( i_nal_ref_idc != NAL_PRIORITY_DISPOSABLE && h->param.i_keyint_max > 1 )
         x264_reference_update( h );
 #ifdef DEBUG_DUMP_FRAME
     else