Commit 8fa5fb96 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Fixed transform filter picture pitches usages.

It should fix it when input and output pictures don't have the same
properties (close #3063).
parent 94286172
......@@ -491,7 +491,7 @@ static void FilterPlanar( vout_thread_t *p_vout,
p_in_end -= p_pic->p[i_index].i_pitch;
vlc_memcpy( p_out, p_in_end,
p_pic->p[i_index].i_visible_pitch );
p_out += p_pic->p[i_index].i_pitch;
p_out += p_outpic->p[i_index].i_pitch;
}
}
break;
......@@ -516,6 +516,8 @@ static void FilterPlanar( vout_thread_t *p_vout,
}
p_in += p_pic->p[i_index].i_pitch;
p_out += p_outpic->p[i_index].i_pitch
- p_outpic->p[i_index].i_visible_pitch;
}
}
break;
......@@ -838,6 +840,8 @@ static void FilterYUYV( vout_thread_t *p_vout,
}
p_in += p_pic->p[i_index].i_pitch;
p_out += p_outpic->p[i_index].i_pitch
- p_outpic->p[i_index].i_visible_pitch;
}
}
break;
......
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