Don't check the complete CodecPrivate data for MS compat tracks. Only check if both are present and have the same size (e.g. slight offsets in the FPS or sth else are OK). Let the user shoot himself in the foot if he really wants to ;)

This commit is contained in:
Moritz Bunkus 2005-03-06 14:30:23 +00:00
parent a5f837fb44
commit 6f662a61ba

View File

@ -149,13 +149,6 @@ video_packetizer_c::can_connect_to(generic_packetizer_c *src,
vsrc->ti.private_size); vsrc->ti.private_size);
return CAN_CONNECT_NO_PARAMETERS; return CAN_CONNECT_NO_PARAMETERS;
} }
if ((ti.private_data != NULL) &&
memcmp(ti.private_data, vsrc->ti.private_data, ti.private_size)) {
error_message = mxsprintf("The codec's private data does not match "
"(lengths: %d and %d).", ti.private_size,
vsrc->ti.private_size);
return CAN_CONNECT_NO_PARAMETERS;
}
return CAN_CONNECT_YES; return CAN_CONNECT_YES;
} }