[vlc-commits] v4l2: remove paranoid code that breaks compressed and 8-bits formats
Rémi Denis-Courmont
git at videolan.org
Thu Mar 22 22:30:42 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 22 23:29:58 2012 +0200| [a44507ac16b5cd1c095a405bc1f7c582678b9ba7] | committer: Rémi Denis-Courmont
v4l2: remove paranoid code that breaks compressed and 8-bits formats
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a44507ac16b5cd1c095a405bc1f7c582678b9ba7
---
modules/access/v4l2/demux.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/modules/access/v4l2/demux.c b/modules/access/v4l2/demux.c
index 525beef..ac401b0 100644
--- a/modules/access/v4l2/demux.c
+++ b/modules/access/v4l2/demux.c
@@ -191,7 +191,6 @@ static const uint32_t p_chroma_fallbacks[] =
static int InitVideo (demux_t *demux, int fd)
{
demux_sys_t *sys = demux->p_sys;
- unsigned int i_min;
enum v4l2_buf_type buf_type;
/* Get device capabilites */
@@ -400,14 +399,6 @@ static int InitVideo (demux_t *demux, int fd)
es_fmt.video.i_gmask = selected->green;
es_fmt.video.i_bmask = selected->blue;
- /* Buggy driver paranoia */
- i_min = fmt.fmt.pix.width * 2;
- if (fmt.fmt.pix.bytesperline < i_min)
- fmt.fmt.pix.bytesperline = i_min;
- i_min = fmt.fmt.pix.bytesperline * fmt.fmt.pix.height;
- if (fmt.fmt.pix.sizeimage < i_min)
- fmt.fmt.pix.sizeimage = i_min;
-
/* Init I/O method */
switch (sys->io)
{
More information about the vlc-commits
mailing list