Skip to content

Instantly share code, notes, and snippets.

@jocover
jocover / ffmpeg_nvmpi.patch
Created Oct 20, 2019
AV_CODEC_FLAG_GLOBAL_HEADER test
View ffmpeg_nvmpi.patch
diff --git a/configure b/configure
index 34c2adb..7890937 100755
--- a/configure
+++ b/configure
@@ -340,6 +340,7 @@ External library support:
--disable-vaapi disable Video Acceleration API (mainly Unix/Intel) code [autodetect]
--disable-vdpau disable Nvidia Video Decode and Presentation API for Unix code [autodetect]
--disable-videotoolbox disable VideoToolbox code [autodetect]
+ --enable-nvmpi enable nvmpi code
@jocover
jocover / sdk_version.h
Created May 4, 2018
unity PS4 fake version patch
View sdk_version.h
/* SIE CONFIDENTIAL
PlayStation(R)4 Programmer Tool Runtime Library Release 04.508.041
* Copyright (C) 2017 Sony Interactive Entertainment Inc.
* All Rights Reserved.
#define SCE_ORBIS_SDK_VERSION (0x04508101u)
*/
#if !defined(SDK_VERSION_H)
#define SDK_VERSION_H
View gist:688c4ee3a5f5c0cba0f5ad53ec15245d
### Keybase proof
I hereby claim:
* I am jocover on github.
* I am jocover (https://keybase.io/jocover) on keybase.
* I have a public key ASDcmZu6EYsMvIvdWtMW174TM5_N3SDQ1W4RJnPPx9TB5wo
To claim this, I am signing this object:
@jocover
jocover / alliance_AS4C64M16D2.xml
Created Jul 28, 2017
LimeSDR FPGA ddr2_high_performance_controller preset library
View alliance_AS4C64M16D2.xml
<preset_list>
<preset name="alliance_AS4C64M16D2">
<parameter name="mem_if_memtype" value="DDR2 SDRAM" />
<parameter name="vendor" value="Other" />
<parameter name="chip_or_dimm" value="Discrete Device" />
<parameter name="mem_fmax" value="400" />
<parameter name="mem_if_coladdr_width" value="10" />
<parameter name="mem_if_rowaddr_width" value="13" />
<parameter name="mem_if_bankaddr_width" value="3" />
<parameter name="mem_if_clk_pair_count" value="1" />
View hackrf to vmware
diff --git "a/C:\\Users\\JIANG_~1\\AppData\\Local\\Temp\\TortoiseGit\\hac7318.tmp\\hackrf-a1b8535-left.c" "b/C:\\Users\\jiang_000\\Desktop\\hackrf\\host\\libhackrf\\src\\hackrf.c"
index 2902a80..53b0259 100644
--- "a/C:\\Users\\JIANG_~1\\AppData\\Local\\Temp\\TortoiseGit\\hac7318.tmp\\hackrf-a1b8535-left.c"
+++ "b/C:\\Users\\jiang_000\\Desktop\\hackrf\\host\\libhackrf\\src\\hackrf.c"
@@ -410,12 +410,15 @@ static int hackrf_open_setup(libusb_device_handle* usb_device, hackrf_device** d
//int speed = libusb_get_device_speed(usb_device);
// TODO: Error or warning if not high speed USB?
-
+ int current_configuration = 0;