diff --git a/src/ustreamer/blank.c b/src/ustreamer/blank.c index 7648aec..ade7dd0 100644 --- a/src/ustreamer/blank.c +++ b/src/ustreamer/blank.c @@ -59,6 +59,7 @@ static frame_s *_init_internal(void) { frame_set_data(blank, BLANK_JPEG_DATA, BLANK_JPEG_DATA_SIZE); blank->width = BLANK_JPEG_WIDTH; blank->height = BLANK_JPEG_HEIGHT; + blank->format = V4L2_PIX_FMT_JPEG; return blank; } @@ -67,6 +68,7 @@ static frame_s *_init_external(const char *path) { frame_s *blank; blank = frame_init("blank_external"); + blank->format = V4L2_PIX_FMT_JPEG; if ((fp = fopen(path, "rb")) == NULL) { LOG_PERROR("Can't open blank placeholder '%s'", path); diff --git a/src/ustreamer/blank.h b/src/ustreamer/blank.h index 8d74843..0858b25 100644 --- a/src/ustreamer/blank.h +++ b/src/ustreamer/blank.h @@ -27,6 +27,7 @@ #include #include +#include #include "../common/tools.h" #include "../common/logging.h" diff --git a/src/ustreamer/encoder.c b/src/ustreamer/encoder.c index 7901ca4..9004d83 100644 --- a/src/ustreamer/encoder.c +++ b/src/ustreamer/encoder.c @@ -242,7 +242,7 @@ int encoder_compress_buffer(encoder_s *encoder, unsigned worker_number, frame_s frame->width = raw->width; frame->height = raw->height; - // frame->format = V4L2_PIX_FMT_JPEG; + frame->format = V4L2_PIX_FMT_JPEG; return 0;