[vlc-commits] Fixed video AR given to the encoder when transcoding.
Laurent Aimar
git at videolan.org
Tue Jan 10 21:24:27 CET 2012
vlc/vlc-1.2 | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan 10 20:48:40 2012 +0100| [99e262c40f7de62aa4969b1584cce3390f80cc23] | committer: Jean-Baptiste Kempf
Fixed video AR given to the encoder when transcoding.
(cherry picked from commit 45ee0e5c08f3ace0cb314f9108839ce856ba3f4e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=99e262c40f7de62aa4969b1584cce3390f80cc23
---
modules/stream_out/transcode/video.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 68b8d88..f18023a 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -499,8 +499,8 @@ static void transcode_video_encoder_init( sout_stream_t *p_stream,
id->p_decoder->fmt_out.video.i_sar_den,
0 );
- id->p_encoder->fmt_out.video.i_sar_num = id->p_decoder->fmt_out.video.i_sar_num * i_src_width / i_dst_width;
- id->p_encoder->fmt_out.video.i_sar_den = id->p_decoder->fmt_out.video.i_sar_den * i_src_height / i_dst_height;
+ id->p_encoder->fmt_out.video.i_sar_num = id->p_decoder->fmt_out.video.i_sar_num * i_src_width * i_dst_height;
+ id->p_encoder->fmt_out.video.i_sar_den = id->p_decoder->fmt_out.video.i_sar_den * i_src_height * i_dst_width;
}
vlc_ureduce( &id->p_encoder->fmt_out.video.i_sar_num,
&id->p_encoder->fmt_out.video.i_sar_den,
More information about the vlc-commits
mailing list