avformat/aadec: Check for scanf() failure