[FFmpeg-cvslog] v4l2: perform minor style fixes

Stefano Sabatini git at videolan.org
Mon May 30 09:46:44 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sat May 28 21:04:29 2011 +0200| [2d48515eb7a6db81ca067db0f2b986c58360115a] | committer: Stefano Sabatini

v4l2: perform minor style fixes

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d48515eb7a6db81ca067db0f2b986c58360115a
---

 libavdevice/v4l2.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index bff40c8..d1bf572 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -350,7 +350,7 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
 
         return AVERROR(errno);
     }
-    assert (buf.index < s->buffers);
+    assert(buf.index < s->buffers);
     if (s->frame_size > 0 && buf.bytesused != s->frame_size) {
         av_log(ctx, AV_LOG_ERROR, "The v4l2 frame is %d bytes, but %d bytes are expected\n", buf.bytesused, s->frame_size);
         return AVERROR_INVALIDDATA;
@@ -435,7 +435,7 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
     struct video_data *s = s1->priv_data;
     struct v4l2_input input = {0};
     struct v4l2_standard standard = {0};
-    struct v4l2_streamparm streamparm = { 0 };
+    struct v4l2_streamparm streamparm = {0};
     struct v4l2_fract *tpf = &streamparm.parm.capture.timeperframe;
     int i;
 
@@ -472,7 +472,7 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
         av_log(s1, AV_LOG_DEBUG, "The V4L2 driver set standard: %s\n",
                s->standard);
         /* set tv standard */
-        for(i=0;;i++) {
+        for (i = 0;; i++) {
             standard.index = i;
             if (ioctl(s->fd, VIDIOC_ENUMSTD, &standard) < 0) {
                 av_log(s1, AV_LOG_ERROR, "The V4L2 driver ioctl set standard(%s) failed\n",



More information about the ffmpeg-cvslog mailing list