Commit 00464065 authored by Fiona Glaser's avatar Fiona Glaser
Browse files

Fix two bugs in predictor checking

pmv wasn't checked properly in some cases, as well as zero vector.
Output-changing portion of the following patch.
parent d2a9d254
......@@ -219,8 +219,7 @@ void x264_me_search_ref( x264_t *h, x264_me_t *m, int16_t (*mvc)[2], int i_mvc,
if( h->mb.i_subpel_refine >= 3 )
{
pmv = pack16to32_mask(bmx,bmy);
if( i_mvc )
COST_MV_HPEL( bmx, bmy );
COST_MV_HPEL( bmx, bmy );
for( int i = 0; i < i_mvc; i++ )
{
if( M32( mvc[i] ) && (pmv != M32( mvc[i] )) )
......@@ -270,8 +269,7 @@ void x264_me_search_ref( x264_t *h, x264_me_t *m, int16_t (*mvc)[2], int i_mvc,
}
}
if( pmv )
COST_MV( 0, 0 );
COST_MV( 0, 0 );
switch( h->mb.i_me_method )
{
......
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