Commit 6b80f22a authored by lucabe's avatar lucabe

Fix "-aspect" when "-pad*" is used


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5935 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c9162d3c
......@@ -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){
......
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