[vlc-commits] src/image: make sure we set the output dimensions correctly (refs #13862)
Felix Paul Kühne
git at videolan.org
Tue Jun 23 19:47:37 CEST 2015
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jun 23 18:18:53 2015 +0200| [903b3cbcbc3bf4eab01c80e15e91f2cca0bbeb5e] | committer: Felix Paul Kühne
src/image: make sure we set the output dimensions correctly (refs #13862)
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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=903b3cbcbc3bf4eab01c80e15e91f2cca0bbeb5e
---
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 )
{
More information about the vlc-commits
mailing list