[vlc-commits] es_out: initialize video.i_visible_width/height
Thomas Guillem
git at videolan.org
Wed Oct 21 19:13:34 CEST 2015
vlc/vlc-2.2 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 6 11:31:51 2015 +0200| [48df071bcc09651d84e806042fa7d8668c2c78ef] | committer: Jean-Baptiste Kempf
es_out: initialize video.i_visible_width/height
(cherry picked from commit f7f1c524a9011c851d39d707e3b6bef433d38b75)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=48df071bcc09651d84e806042fa7d8668c2c78ef
---
src/input/es_out.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 324726d..b2b0988 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1444,6 +1444,12 @@ static es_out_id_t *EsOutAdd( es_out_t *out, const es_format_t *fmt )
else
es->fmt.i_codec = vlc_fourcc_GetCodec( es->fmt.i_cat,
es->fmt.i_codec );
+ if( es->fmt.i_cat == VIDEO_ES
+ && (!es->fmt.video.i_visible_width || !es->fmt.video.i_visible_height))
+ {
+ es->fmt.video.i_visible_width = es->fmt.video.i_width;
+ es->fmt.video.i_visible_height = es->fmt.video.i_height;
+ }
es->i_id = es->fmt.i_id;
es->i_meta_id = out->p_sys->i_id;
More information about the vlc-commits
mailing list