int bestref = 1;
for( int i = 1; i < h->i_ref0; i++ )
- if( !frames[i]->b_duplicate || frames[i]->i_frame != h->fref0[ref-1]->i_frame )
- /* Favor lower POC as a tiebreaker. */
- COPY2_IF_GT( max, refcount[i], bestref, i );
+ /* Favor lower POC as a tiebreaker. */
+ COPY2_IF_GT( max, refcount[i], bestref, i );
/* FIXME: If there are duplicates from frames other than ref0 then it is possible
* that the optimal ordering doesnt place every duplicate. */
if( !strncmp( stats_buf, "#options:", 9 ) )
{
int i, j;
+ uint32_t k, l;
char *opts = stats_buf;
stats_in = strchr( stats_buf, '\n' );
if( !stats_in )
return -1;
}
- if( ( p = strstr( opts, "timebase=" ) ) && sscanf( p, "timebase=%d/%d", &i, &j ) != 2 )
+ if( ( p = strstr( opts, "timebase=" ) ) && sscanf( p, "timebase=%u/%u", &k, &l ) != 2 )
{
x264_log( h, X264_LOG_ERROR, "timebase specified in stats file not valid\n" );
return -1;
}
- if( i != h->param.i_timebase_num || j != h->param.i_timebase_den )
+ if( k != h->param.i_timebase_num || l != h->param.i_timebase_den )
{
- x264_log( h, X264_LOG_ERROR, "timebase mismatch with 1st pass (%d/%d vs %d/%d)\n",
- h->param.i_timebase_num, h->param.i_timebase_den, i, j );
+ x264_log( h, X264_LOG_ERROR, "timebase mismatch with 1st pass (%u/%u vs %u/%u)\n",
+ h->param.i_timebase_num, h->param.i_timebase_den, k, l );
return -1;
}