Commit 2b58c0ef authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

IVTC: fix undefined arithmetic

parent 5fc7f1e0
......@@ -1251,7 +1251,7 @@ static bool IVTCOutputOrDropFrame( filter_t *p_filter, picture_t *p_dst )
if( op == IVTC_OP_DROP_FRAME )
{
/* Bump cadence counter into the next expected position */
p_ivtc->i_cadence_pos = ++p_ivtc->i_cadence_pos % 5;
p_ivtc->i_cadence_pos = (p_ivtc->i_cadence_pos + 1) % 5;
/* Drop frame. We're done. */
return false;
......@@ -1385,7 +1385,7 @@ static bool IVTCOutputOrDropFrame( filter_t *p_filter, picture_t *p_dst )
}
/* Bump cadence counter into the next expected position. */
p_ivtc->i_cadence_pos = ++p_ivtc->i_cadence_pos % 5;
p_ivtc->i_cadence_pos = (p_ivtc->i_cadence_pos + 1) % 5;
}
else if( p_ivtc->i_mode == IVTC_MODE_TELECINED_NTSC_SOFT )
{
......
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