aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/main.c b/main.c
index 1261715..2d3e5fd 100644
--- a/main.c
+++ b/main.c
@@ -44,7 +44,7 @@
/* This is the size of the buffer for the compressed stream.
* It limits the maximum compressed frame size. */
-#define STREAM_BUUFER_SIZE (1024 * 1024)
+#define STREAM_BUFFER_SIZE (1024 * 1024)
/* The number of compress4ed stream buffers */
#define STREAM_BUFFER_CNT 2
@@ -352,7 +352,7 @@ int main(int argc, char **argv)
if (ret)
goto err;
- ret = video_setup_output(&inst, inst.codec, STREAM_BUUFER_SIZE, 1);
+ ret = video_setup_output(&inst, inst.codec, STREAM_BUFFER_SIZE, 1);
if (ret)
goto err;
@@ -382,17 +382,6 @@ int main(int argc, char **argv)
if (ret)
goto err;
- if (0) {
- struct v4l2_control cntrl;
-
- cntrl.id = V4L2_CID_MPEG_VIDC_VIDEO_REQUEST_SEQ_HEADER;
- cntrl.value = 1;
-
- ret = ioctl(inst.video.fd, VIDIOC_S_CTRL, &cntrl);
- if (ret)
- err("request seq header failed (%s)", strerror(errno));
- }
-
dbg("Launching threads");
if (pthread_create(&input_thread, NULL, input_thread_func, &inst))