vlc/vlc-3.0 | branch: master | Thomas Guillem <tho...@gllm.fr> | Tue Mar 27 
16:59:22 2018 +0200| [60b2aec07e9c02d29c106749bce71846d3869e63] | committer: 
Thomas Guillem

chromecast: test a maximum encoding size

(cherry picked from commit 0d3289c825efd325e06fcd77e2f5b1e37fb15cb5)
Signed-off-by: Thomas Guillem <tho...@gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=60b2aec07e9c02d29c106749bce71846d3869e63
---

 modules/stream_out/chromecast/cast.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/stream_out/chromecast/cast.cpp 
b/modules/stream_out/chromecast/cast.cpp
index 7ad61da782..8eb4901a75 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1006,6 +1006,10 @@ sout_stream_sys_t::GetVencOption( sout_stream_t 
*p_stream, vlc_fourcc_t *p_codec
             es_format_t fmt;
             es_format_InitFromVideo( &fmt, p_vid );
             fmt.i_codec = fmt.video.i_chroma = VLC_CODEC_I420;
+
+            /* Test the maximum size/fps we will encode */
+            fmt.video.i_visible_width = fmt.video.i_width = 1920;
+            fmt.video.i_visible_height = fmt.video.i_height = 1080;
             fmt.video.i_frame_rate = 30;
             fmt.video.i_frame_rate_base = 1;
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to