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

dummy vout: fix sign warning

parent 4d1b85c2
......@@ -145,12 +145,15 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
static void DisplayStat(vout_display_t *vd, picture_t *picture, subpicture_t *subpicture)
{
plane_t *p = picture->p;
VLC_UNUSED(vd);
VLC_UNUSED(subpicture);
if ( vd->fmt.i_width*vd->fmt.i_height >= sizeof(mtime_t) &&
(picture->p->i_pitch * picture->p->i_lines) >= sizeof(mtime_t) ) {
if (vd->fmt.i_width * vd->fmt.i_height >= sizeof (mtime_t)
&& (p->i_pitch * p->i_lines) >= (ssize_t)sizeof (mtime_t)) {
mtime_t date;
memcpy(&date, picture->p->p_pixels, sizeof(date));
memcpy(&date, p->p_pixels, sizeof(date));
msg_Dbg(vd, "VOUT got %"PRIu64" ms offset",
(mdate() - date) / 1000 );
}
......
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