[vlc-devel] [PATCH] src/image: make sure we set the output dimensions correct (refs #13862)

Felix Paul Kühne fkuehne at videolan.org
Tue Jun 23 18:19:24 CEST 2015


Previously, if the user set a custom size in the options, it wasn't respected but the snapshot was stored at the native video size
---
 src/misc/image.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/misc/image.c b/src/misc/image.c
index 142b82c..e8c2e08 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -658,7 +658,9 @@ static encoder_t *CreateEncoder( vlc_object_t *p_this, video_format_t *fmt_in,
     p_enc->fmt_in.video = *fmt_in;
 
     if( p_enc->fmt_in.video.i_visible_width == 0 ||
-        p_enc->fmt_in.video.i_visible_height == 0 )
+        p_enc->fmt_in.video.i_visible_height == 0 ||
+        p_enc->fmt_out.video.i_visible_width == 0 ||
+        p_enc->fmt_out.video.i_visible_height == 0 )
     {
         if( fmt_out->i_width > 0 && fmt_out->i_height > 0 )
         {
-- 
2.4.4




More information about the vlc-devel mailing list