Commit 4394c4d5 authored by Loren Merritt's avatar Loren Merritt

finished printf -> x264_log conversion.


git-svn-id: svn://svn.videolan.org/x264/trunk@99 df754926-b1dd-0310-bc7b-ec298dee348c
parent 04bb8334
......@@ -1366,7 +1366,7 @@ void x264_macroblock_analyse( x264_t *h )
analysis.l0.me4x4[i8x8][3].cost;
break;
default:
fprintf( stderr, "internal error (!8x8 && !4x4)" );
x264_log( h, X264_LOG_ERROR, "internal error (!8x8 && !4x4)\n" );
break;
}
}
......@@ -1551,7 +1551,7 @@ void x264_macroblock_analyse( x264_t *h )
break;
default:
fprintf( stderr, "internal error P_L0 and partition=%d\n", h->mb.i_partition );
x264_log( h, X264_LOG_ERROR, "internal error P_L0 and partition=%d\n", h->mb.i_partition );
break;
}
break;
......@@ -1583,7 +1583,7 @@ void x264_macroblock_analyse( x264_t *h )
x264_macroblock_cache_mv( h, x+1, y+1, 1, 1, 0, analysis.l0.me4x4[i][3].mv[0], analysis.l0.me4x4[i][3].mv[1] );
break;
default:
fprintf( stderr, "internal error\n" );
x264_log( h, X264_LOG_ERROR, "internal error\n" );
break;
}
}
......@@ -1656,7 +1656,7 @@ void x264_macroblock_analyse( x264_t *h )
x264_mb_cache_mv_b8x16( h, &analysis, 1, 1 );
break;
default:
fprintf( stderr, "internal error (invalid MB type)\n" );
x264_log( h, X264_LOG_ERROR, "internal error (invalid MB type)\n" );
break;
}
}
......
......@@ -279,7 +279,7 @@ static void x264_cabac_mb_type( x264_t *h )
idx++;
break;
default:
fprintf( stderr, "error in B mb type\n" );
x264_log(h, X264_LOG_ERROR, "error in B mb type\n" );
return;
}
......@@ -294,7 +294,7 @@ static void x264_cabac_mb_type( x264_t *h )
}
else
{
fprintf( stderr, "unknown SLICE_TYPE unsupported in x264_macroblock_write_cabac\n" );
x264_log(h, X264_LOG_ERROR, "unknown SLICE_TYPE unsupported in x264_macroblock_write_cabac\n" );
}
}
......
......@@ -226,7 +226,7 @@ static void block_residual_write_cavlc( x264_t *h, bs_t *s, int i_idx, int *l, i
if( i_level_code >= ( 1 << 12 ) || i_level_code < 0 )
{
fprintf( stderr, "OVERFLOW levelcode=%d\n", i_level_code );
x264_log(h, X264_LOG_ERROR, "OVERFLOW levelcode=%d\n", i_level_code );
}
bs_write( s, 12, i_level_code ); /* check overflow ?? */
......@@ -360,7 +360,7 @@ void x264_macroblock_write_cavlc( x264_t *h, bs_t *s )
i_mb_i_offset = 23;
break;
default:
fprintf( stderr, "internal error or slice unsupported\n" );
x264_log(h, X264_LOG_ERROR, "internal error or slice unsupported\n" );
return;
}
......@@ -632,7 +632,7 @@ void x264_macroblock_write_cavlc( x264_t *h, bs_t *s )
}
else
{
fprintf( stderr, "invalid/unhandled mb_type\n" );
x264_log(h, X264_LOG_ERROR, "invalid/unhandled mb_type\n" );
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment