[Ffmpeg-cvslog] r5935 - trunk/ffmpeg.c
lucabe
subversion
Sat Aug 5 14:54:16 CEST 2006
Author: lucabe
Date: Sat Aug 5 14:54:16 2006
New Revision: 5935
Modified:
trunk/ffmpeg.c
Log:
Fix "-aspect" when "-pad*" is used
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Sat Aug 5 14:54:16 2006
@@ -3032,7 +3032,7 @@
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){
More information about the ffmpeg-cvslog
mailing list