Commit bdce9870 authored by lucabe's avatar lucabe

Fix crop & pad + rescaling


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5133 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 45b156d7
......@@ -1729,8 +1729,8 @@ static int av_encode(AVFormatContext **output_files,
} else if ((codec->width == icodec->width -
(frame_leftBand + frame_rightBand)) &&
(codec->height == icodec->height -
(frame_topBand + frame_bottomBand)))
{
(frame_topBand + frame_bottomBand)) &&
(frame_rightBand + frame_leftBand + frame_topBand + frame_bottomBand)) {
ost->video_resample = 0;
ost->video_crop = 1;
ost->topBand = frame_topBand;
......@@ -1738,7 +1738,8 @@ static int av_encode(AVFormatContext **output_files,
} else if ((codec->width == icodec->width +
(frame_padleft + frame_padright)) &&
(codec->height == icodec->height +
(frame_padtop + frame_padbottom))) {
(frame_padtop + frame_padbottom)) &&
(frame_padright + frame_padleft + frame_padtop + frame_padbottom)) {
ost->video_resample = 0;
ost->video_crop = 0;
ost->video_pad = 1;
......
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