]> git.sesse.net Git - ffmpeg/commit
Implement v4l2 input size autodetection in v4l2_read_header().
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 26 Apr 2010 22:07:15 +0000 (22:07 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 26 Apr 2010 22:07:15 +0000 (22:07 +0000)
commit932d775fa2d66ce26ce182c8499678f97ecad63c
treeb060e7a230b67b7942dfc44e2ed3cf805fbd70f2
parent687dc3555db2fef2d649374d421ea95eeab93078
Implement v4l2 input size autodetection in v4l2_read_header().

Move check on frame size after the device is opened and after
device_try_init() is attempted. If the provided size value is 0x0,
perform a VIDIOC_G_FMT ioctl() on the device, which sets size to the
current settings.

Originally committed as revision 22971 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/v4l2.c