]> git.videolan.org Git - x264.git/commitdiff
Fix various silly errors in the previous patches
authorAnton Mitrofanov <BugMaster@narod.ru>
Tue, 23 Feb 2010 17:10:26 +0000 (09:10 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 23 Feb 2010 17:10:26 +0000 (09:10 -0800)
common/common.c
common/frame.c
common/x86/mc-a2.asm
x264.c

index 04105882f4413fea46cfe2607d4d64b3d5dd54e9..51d89294dd6860d6633dc3f9628a8e8337353fa2 100644 (file)
@@ -346,6 +346,7 @@ static int x264_param_apply_tune( x264_param_t *param, const char *tune )
         else
         {
             fprintf( stderr, "x264 [error]: invalid tune '%s'\n", s );
+            x264_free( tmp );
             return -1;
         }
         if( 0 )
@@ -355,6 +356,7 @@ static int x264_param_apply_tune( x264_param_t *param, const char *tune )
         }
         s = strtok( NULL, ",./-+" );
     }
+    x264_free( tmp );
     return 0;
 }
 
index 2798f25c70a035bacc4c611389c84a10e6edc6a3..29a10414f8188ed40b00f0d20f7c4443067360cd 100644 (file)
@@ -202,6 +202,7 @@ void x264_frame_delete( x264_frame_t *frame )
         x264_free( frame->i_row_bits );
         x264_free( frame->i_row_qp );
         x264_free( frame->mb_type );
+        x264_free( frame->mb_partition );
         x264_free( frame->mv[0] );
         x264_free( frame->mv[1] );
         x264_free( frame->ref[0] );
index d86d6eff968be220b5115900cb2546de6c775f13..6343c586c6fbd4b9d075855321bd93faebde70d1 100644 (file)
@@ -740,7 +740,7 @@ cglobal x264_memzero_aligned_%1, 2,2
     mova [r0 + r1 + i], m0
 %assign i i+mmsize
 %endrep
-    add r1d, mmsize*8
+    add r1, mmsize*8
     jl .loop
     REP_RET
 %endmacro
diff --git a/x264.c b/x264.c
index b2ab17c7362139e0ab2cf83c44efcc69d9bff6d6..66f505c10180d394a4b80a6b24b18a59a2ac3cd4 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -793,7 +793,7 @@ static int Parse( int argc, char **argv, x264_param_t *param, cli_opt_t *opt )
     const char *demuxer = demuxer_names[0];
     char *output_filename = NULL;
     const char *muxer = muxer_names[0];
-    x264_param_t defaults = *param;
+    x264_param_t defaults;
     char *profile = NULL;
     int b_thread_input = 0;
     int b_turbo = 1;
@@ -805,6 +805,8 @@ static int Parse( int argc, char **argv, x264_param_t *param, cli_opt_t *opt )
     char *preset = NULL;
     char *tune = NULL;
 
+    x264_param_default( &defaults );
+
     memset( opt, 0, sizeof(cli_opt_t) );
     memset( &input_opt, 0, sizeof(cli_input_opt_t) );
     opt->b_progress = 1;