diff options
author | Luca Abeni <lucabe72@email.it> | 2006-05-16 13:43:06 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-05-16 13:43:06 +0000 |
commit | b997b34fa7a52120acd6738258c7049e54f10821 (patch) | |
tree | 65f0d62f330de5b8c3e125848f2d07909ff98b30 | |
parent | e89b8b0a9370346e3c9ab5c2a8aa2c674933305d (diff) | |
download | ffmpeg-b997b34fa7a52120acd6738258c7049e54f10821.tar.gz |
Fix cropping & padding when capturing from a v4l(2) card
Originally committed as revision 5385 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |