aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2006-08-05 12:54:16 +0000
committerLuca Abeni <lucabe72@email.it>2006-08-05 12:54:16 +0000
commite7268d51aff739691a47071671ac0565a1050ed8 (patch)
tree4fb04a5c818cf224d7bef46e641f61d231cc36e7 /ffmpeg.c
parentdbdae6ec54cb02db446b756e0dea6e5cefd44893 (diff)
downloadffmpeg-e7268d51aff739691a47071671ac0565a1050ed8.tar.gz
Fix "-aspect" when "-pad*" is used
Originally committed as revision 5935 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 72e898af9f..022ebfe172 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3032,7 +3032,7 @@ static void new_video_stream(AVFormatContext *oc)
video_enc->width = frame_width + frame_padright + frame_padleft;
video_enc->height = frame_height + frame_padtop + frame_padbottom;
- video_enc->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255);
+ video_enc->sample_aspect_ratio = av_d2q(frame_aspect_ratio*video_enc->height/video_enc->width, 255);
video_enc->pix_fmt = frame_pix_fmt;
if(codec && codec->pix_fmts){