Commit 505829ea authored by lucabe's avatar lucabe

Fix cropping & padding when capturing from a v4l(2) card


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5385 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5c43981c
......@@ -3463,6 +3463,10 @@ static void prepare_grab(void)
if (vp->time_base.num*(int64_t)enc->time_base.den > enc->time_base.num*(int64_t)vp->time_base.den){
vp->time_base = enc->time_base;
vp->width += frame_leftBand + frame_rightBand;
vp->width -= (frame_padleft + frame_padright);
vp->height += frame_topBand + frame_bottomBand;
vp->height -= (frame_padtop + frame_padbottom);
}
has_video = 1;
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