quartz: Use memcmp instead of strncmp in MPEGSplitter_pre_connect.
header isn't a string and therefore using strncmp doesn't make sense.
This commit is contained in:
parent
89b479c8ec
commit
a35431a194
|
@ -471,7 +471,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin, ALLOCATO
|
||||||
pos += 4;
|
pos += 4;
|
||||||
|
|
||||||
/* Skip ID3 v2 tag, if any */
|
/* Skip ID3 v2 tag, if any */
|
||||||
if (SUCCEEDED(hr) && !strncmp("ID3", (char*)header, 3))
|
if (SUCCEEDED(hr) && !memcmp("ID3", header, 3))
|
||||||
do {
|
do {
|
||||||
UINT length;
|
UINT length;
|
||||||
hr = IAsyncReader_SyncRead(pPin->pReader, pos, 6, header + 4);
|
hr = IAsyncReader_SyncRead(pPin->pReader, pos, 6, header + 4);
|
||||||
|
|
Loading…
Reference in New Issue