1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/development/libraries/libdc1394/darwin-fixes.patch
Anthony Cowley ab0ea84733 libdc1394: patch bugs on darwin
One of these issues is in a platform-specific file for darwin, the
other may only be a breaker when using clang.
2017-03-28 19:25:02 -04:00

25 lines
915 B
Diff

diff -Naur libdc1394-2.2.5-old/dc1394/bayer.c libdc1394-2.2.5-new/dc1394/bayer.c
--- libdc1394-2.2.5-old/dc1394/bayer.c 2016-10-11 02:19:10.000000000 -0400
+++ libdc1394-2.2.5-new/dc1394/bayer.c 2017-03-28 17:59:02.000000000 -0400
@@ -775,7 +775,7 @@
{
uint8_t *outR, *outG, *outB;
register int i, j;
- uint tmp;
+ uint32_t tmp;
int st=sx*sy;
int p;
int sx2=sx<<1;
diff -Naur libdc1394-2.2.5-old/dc1394/macosx/capture.c libdc1394-2.2.5-new/dc1394/macosx/capture.c
--- libdc1394-2.2.5-old/dc1394/macosx/capture.c 2016-12-20 08:10:34.000000000 -0500
+++ libdc1394-2.2.5-new/dc1394/macosx/capture.c 2017-03-28 17:58:38.000000000 -0400
@@ -614,7 +614,7 @@
dc1394video_frame_t * frame_tmp = capture->frames + next;
char ch;
- if(craw->frames==NULL || craw->capture_is_set==0) {
+ if(craw->capture.frames==NULL || craw->capture_is_set==0) {
*frame=NULL;
return DC1394_CAPTURE_IS_NOT_SET;
}