Skip to content

Commit

Permalink
cameras.c: fix a typo that results in the use of the wrong size buffe…
Browse files Browse the repository at this point in the history
…r when requesting packed 10-bit depth data.

Thanks to David García Garzón, who pointed out the error.

Signed-off-by: Drew Fisher <[email protected]> (zarvox)
  • Loading branch information
zarvox authored and qdot committed Dec 28, 2010
1 parent b4ab7f8 commit 335a4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cameras.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ int freenect_start_depth(freenect_device *dev)
stream_init(ctx, &dev->depth, 0, FREENECT_DEPTH_11BIT_PACKED_SIZE);
break;
case FREENECT_DEPTH_10BIT_PACKED:
stream_init(ctx, &dev->depth, 0, FREENECT_DEPTH_11BIT_PACKED_SIZE);
stream_init(ctx, &dev->depth, 0, FREENECT_DEPTH_10BIT_PACKED_SIZE);
break;
}

Expand Down

0 comments on commit 335a4dd

Please sign in to comment.