]> git.sesse.net Git - ffmpeg/commit
v4l2: setting device parameters early
authorFederico Simoncelli <federico.simoncelli@gmail.com>
Thu, 2 Jan 2014 15:25:48 +0000 (16:25 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Jan 2014 13:02:06 +0000 (14:02 +0100)
commitb1ad9312331759679a9c956233716a67ae681d89
treec30372b317afa469534b834a8237d54d441060d7
parent05286b6a9cc34bb5f4a9331df39b7c679b5d197d
v4l2: setting device parameters early

Setting the v4l2 device parameters may influence video properties
such as width, height and pixel format.
This patch moves v4l2_set_parameters to be executed before fetching
the video properties, avoiding errors such as (pal vs ntsc):

 The v4l2 frame is 829440 bytes, but 691200 bytes are expected

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/v4l2.c