Commit c40432d3 authored by Stefano Sabatini's avatar Stefano Sabatini

Cosmetics: put a space after each comma, improve consistency and

readability.

Originally committed as revision 16315 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5163c0d9
...@@ -111,7 +111,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -111,7 +111,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
} }
} }
if (ioctl(video_fd,VIDIOCGCAP, &s->video_cap) < 0) { if (ioctl(video_fd, VIDIOCGCAP, &s->video_cap) < 0) {
av_log(s1, AV_LOG_ERROR, "VIDIOCGCAP: %s\n", strerror(errno)); av_log(s1, AV_LOG_ERROR, "VIDIOCGCAP: %s\n", strerror(errno));
goto fail; goto fail;
} }
...@@ -172,7 +172,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -172,7 +172,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
goto fail1; goto fail1;
} }
if (ioctl(video_fd,VIDIOCGMBUF,&s->gb_buffers) < 0) { if (ioctl(video_fd, VIDIOCGMBUF, &s->gb_buffers) < 0) {
/* try to use read based access */ /* try to use read based access */
int val; int val;
...@@ -191,9 +191,9 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -191,9 +191,9 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
s->time_frame = av_gettime() * s->time_base.den / s->time_base.num; s->time_frame = av_gettime() * s->time_base.den / s->time_base.num;
s->use_mmap = 0; s->use_mmap = 0;
} else { } else {
s->video_buf = mmap(0,s->gb_buffers.size,PROT_READ|PROT_WRITE,MAP_SHARED,video_fd,0); s->video_buf = mmap(0, s->gb_buffers.size, PROT_READ|PROT_WRITE, MAP_SHARED, video_fd, 0);
if ((unsigned char*)-1 == s->video_buf) { if ((unsigned char*)-1 == s->video_buf) {
s->video_buf = mmap(0,s->gb_buffers.size,PROT_READ|PROT_WRITE,MAP_PRIVATE,video_fd,0); s->video_buf = mmap(0, s->gb_buffers.size, PROT_READ|PROT_WRITE, MAP_PRIVATE, video_fd, 0);
if ((unsigned char*)-1 == s->video_buf) { if ((unsigned char*)-1 == s->video_buf) {
av_log(s1, AV_LOG_ERROR, "mmap: %s\n", strerror(errno)); av_log(s1, AV_LOG_ERROR, "mmap: %s\n", strerror(errno));
goto fail; goto fail;
...@@ -213,7 +213,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -213,7 +213,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
fail1: fail1:
av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not support suitable format\n"); av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not support suitable format\n");
} else { } else {
av_log(s1, AV_LOG_ERROR,"Fatal: grab device does not receive any video signal\n"); av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not receive any video signal\n");
} }
goto fail; goto fail;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment