vlc | branch: master | Felix Paul Kühne <[email protected]> | 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 ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
