[vlc-commits] transcode: assume user requests visible width/ height so init those instead of with/height
Ilkka Ollakka
git at videolan.org
Wed Dec 4 09:01:46 CET 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Dec 3 17:55:20 2013 +0200| [808e6123ff6f1850d274d921cf35dc78c7903d4c] | committer: Ilkka Ollakka
transcode: assume user requests visible width/height so init those instead of with/height
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=808e6123ff6f1850d274d921cf35dc78c7903d4c
---
modules/stream_out/transcode/video.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index e6734b0..d714efb 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -852,8 +852,8 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
id->p_uf_chain = NULL;
/* Reinitialize filters */
- id->p_encoder->fmt_out.video.i_width = p_sys->i_width & ~1;
- id->p_encoder->fmt_out.video.i_height = p_sys->i_height & ~1;
+ id->p_encoder->fmt_out.video.i_visible_width = p_sys->i_width & ~1;
+ id->p_encoder->fmt_out.video.i_visible_height = p_sys->i_height & ~1;
id->p_encoder->fmt_out.video.i_sar_num = id->p_encoder->fmt_out.video.i_sar_den = 0;
transcode_video_filter_init( p_stream, id );
@@ -996,8 +996,8 @@ bool transcode_video_add( sout_stream_t *p_stream, es_format_t *p_fmt,
/* Complete destination format */
id->p_encoder->fmt_out.i_codec = p_sys->i_vcodec;
- id->p_encoder->fmt_out.video.i_width = p_sys->i_width & ~1;
- id->p_encoder->fmt_out.video.i_height = p_sys->i_height & ~1;
+ id->p_encoder->fmt_out.video.i_visible_width = p_sys->i_width & ~1;
+ id->p_encoder->fmt_out.video.i_visible_height = p_sys->i_height & ~1;
id->p_encoder->fmt_out.i_bitrate = p_sys->i_vbitrate;
/* Build decoder -> filter -> encoder chain */
More information about the vlc-commits
mailing list