diff options
-rw-r--r-- | v4l2-jpeg-codec-test/test-jpeg.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/v4l2-jpeg-codec-test/test-jpeg.c b/v4l2-jpeg-codec-test/test-jpeg.c index ed3c650..44fb292 100644 --- a/v4l2-jpeg-codec-test/test-jpeg.c +++ b/v4l2-jpeg-codec-test/test-jpeg.c @@ -665,11 +665,7 @@ int main(int argc, char *argv[]) int out_fd = open(output_filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); printf("Generating output file...\n"); - char x; - for (i = 0; i < capture_buffer_sz; ++i) { - x = p_dst_buf[i]; - write(out_fd, (const void * )&x, 1); - } + write(out_fd, p_dst_buf, capture_buffer_sz); close(out_fd); printf("Output file: %s, size: %d\n", output_filename, capture_buffer_sz); |