a toy codec detector