vidoe: tell encoder when capture filter went from portrait to landscape resolution

parent a5075403
......@@ -306,7 +306,8 @@ static void configure_video_source(VideoStream *stream){
/*the camera may not support the target size and suggest a one close to the target */
if (cam_vsize.width*cam_vsize.height<vsize.width*vsize.height){
if (cam_vsize.width*cam_vsize.height<=vsize.width*vsize.height &&
cam_vsize.width != vsize.width){
ms_message("Output video size adjusted to match camera resolution (%ix%i)\n",vsize.width,vsize.height);
} else if (cam_vsize.width*cam_vsize.height>vsize.width*vsize.height){
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