Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137964
b: refs/heads/master
c: 9f1b9ef
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent f53f6db commit c0bbc43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e66793b622feb383dec59d9c044a4c908d7c5c7
refs/heads/master: 9f1b9efa6712201aacc590b3250e6f39f9e13f21
8 changes: 2 additions & 6 deletions trunk/drivers/media/video/zoran/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2549,12 +2549,11 @@ static int zoran_try_fmt_vid_out(struct file *file, void *__fh,
struct zoran_jpg_settings settings;
int res = 0;

if (fmt->fmt.pix.bytesperline > 0)
return -EINVAL;

if (fmt->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG)
return -EINVAL;

fmt->fmt.pix.bytesperline = 0;

mutex_lock(&zr->resource_lock);
settings = fh->jpg_settings;

Expand Down Expand Up @@ -2608,9 +2607,6 @@ static int zoran_try_fmt_vid_cap(struct file *file, void *__fh,
struct zoran *zr = fh->zr;
int i;

if (fmt->fmt.pix.bytesperline > 0)
return -EINVAL;

if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG)
return zoran_try_fmt_vid_out(file, fh, fmt);

Expand Down

0 comments on commit c0bbc43

Please sign in to comment.