Browse Source

Fix crash on musl and clean up dependency

opengl
Martijn Braam 1 year ago
parent
commit
59dde6bb74
  1. 1
      src/process_pipeline.c
  2. 2
      src/zbar_pipeline.c

1
src/process_pipeline.c

@ -14,7 +14,6 @@
#include "gl_util.h"
#include <sys/mman.h>
#include <drm/drm_fourcc.h>
#define TIFFTAG_FORWARDMATRIX1 50964

2
src/zbar_pipeline.c

@ -184,7 +184,7 @@ process_image(MPPipeline *pipeline, MPZBarImage **_image)
zbar_image_t *zbar_image = zbar_image_create();
zbar_image_set_format(zbar_image, zbar_fourcc('Y', '8', '0', '0'));
zbar_image_set_size(zbar_image, width, height);
zbar_image_set_data(zbar_image, data, width * height * sizeof(uint8_t), zbar_image_free_data);
zbar_image_set_data(zbar_image, data, width * height * sizeof(uint8_t), NULL);
int res = zbar_scan_image(scanner, zbar_image);
assert(res >= 0);

Loading…
Cancel
Save