mirror of https://github.com/FreeRDP/FreeRDP
Removed H264 dummy, did not work (crash on use)
This commit is contained in:
parent
5764d5a78a
commit
2614251e83
|
@ -34,39 +34,6 @@
|
|||
|
||||
#define TAG FREERDP_TAG("codec")
|
||||
|
||||
/**
|
||||
* Dummy subsystem
|
||||
*/
|
||||
|
||||
static int dummy_decompress(H264_CONTEXT* h264, const BYTE* pSrcData, UINT32 SrcSize)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int dummy_compress(H264_CONTEXT* h264, BYTE** ppDstData, UINT32* pDstSize)
|
||||
{
|
||||
//H264_CONTEXT_X264* sys = (H264_CONTEXT_X264*) h264->pSystemData;
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void dummy_uninit(H264_CONTEXT* h264)
|
||||
{
|
||||
}
|
||||
|
||||
static BOOL dummy_init(H264_CONTEXT* h264)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static H264_CONTEXT_SUBSYSTEM g_Subsystem_dummy =
|
||||
{
|
||||
"dummy",
|
||||
dummy_init,
|
||||
dummy_uninit,
|
||||
dummy_decompress,
|
||||
dummy_compress
|
||||
};
|
||||
|
||||
BOOL avc420_ensure_buffer(H264_CONTEXT* h264, UINT32 stride, UINT32 width, UINT32 height)
|
||||
{
|
||||
if (!h264)
|
||||
|
@ -127,7 +94,7 @@ static BOOL avc_yuv_to_rgb(H264_CONTEXT* h264, const RECTANGLE_16* regionRects,
|
|||
UINT32 x;
|
||||
BYTE* pDstPoint;
|
||||
prim_size_t roi;
|
||||
int width, height;
|
||||
INT32 width, height;
|
||||
const BYTE* pYUVPoint[3];
|
||||
primitives_t* prims = primitives_get();
|
||||
|
||||
|
@ -475,8 +442,7 @@ static BOOL CALLBACK h264_register_subsystems(PINIT_ONCE once, PVOID param, PVOI
|
|||
i++;
|
||||
#endif
|
||||
|
||||
subSystems[i] = &g_Subsystem_dummy;
|
||||
return TRUE;
|
||||
return (i > 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue