Commit 903b3cbc authored by Felix Paul Kühne's avatar 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
parent c342e2ef
......@@ -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 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment