ffmemless: Change hardcoded direction values to macro constants

There are macro constants available for direction variable in
the ffmemless library part. Take those to use instead of hard-
coded values.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>