Originally committed as revision 5935 to svn://svn.ffmpeg.org/ffmpeg/trunk
Luca Abeni authored on 2006/08/05 21:54:16... | ... |
@@ -3032,7 +3032,7 @@ static void new_video_stream(AVFormatContext *oc) |
3032 | 3032 |
|
3033 | 3033 |
video_enc->width = frame_width + frame_padright + frame_padleft; |
3034 | 3034 |
video_enc->height = frame_height + frame_padtop + frame_padbottom; |
3035 |
- video_enc->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255); |
|
3035 |
+ video_enc->sample_aspect_ratio = av_d2q(frame_aspect_ratio*video_enc->height/video_enc->width, 255); |
|
3036 | 3036 |
video_enc->pix_fmt = frame_pix_fmt; |
3037 | 3037 |
|
3038 | 3038 |
if(codec && codec->pix_fmts){ |