Here is my latest fix. Included in tar file is:
ffdecsa <dir> - a newer version with header files for better optimizations (sse2, etc)
Makefile.sh4 - a makefile for building OSEmu for sh4 (optimizations and fix for unaligned userspace errors)
Makefile.x86.opt.sse3.g++ - a makefile for building OSEmu for x86
OSEmu.c - changes made to allow command line setting of stream server IP
module-emulator-osemu.c - changes made for compiling with g++
module-emulator-stream.h - changes made to allow command line setting of stream server IP
module-emulator-stream.c - optimization of csa decryption, multi-client connections for OSEmu (ignored when compiling oscam)
BTW - to build oscam for sh4 you need the following extra options to avoid unaligned userspace errors...
Code:
make sh4 CROSS_DIR=/opt/STM/STLinux-2.4/devkit/sh4/bin/ EXTRA_CC_OPTS='-DPARALLEL_MODE=PARALLEL_32_INT -DMEMALIGN_VAL=4 -DCOPY_UNALIGNED_PKT=1'
NOTE: I have not tested this patch with oscam using dvbapi (i.e. streams which do not include ECM)
I will try to upload to git and make a pull request when I have time...
https://mega.co.nz/#!vVYi0LAA!s3JPLvWugRI0oH0Pg2pGtSCDpC6Dpyy_O8DB5JAnmfY